refactor: use ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers for Chrome APIs (#17417)
This commit is contained in:
parent
546466b209
commit
336db33d18
9 changed files with 82 additions and 99 deletions
|
@ -33,5 +33,5 @@ const extensionId = v8Util.getHiddenValue(isolatedWorld, `extension-${worldId}`)
|
|||
|
||||
if (extensionId) {
|
||||
const chromeAPI = require('@electron/internal/renderer/chrome-api')
|
||||
chromeAPI.injectTo(extensionId, false, window)
|
||||
chromeAPI.injectTo(extensionId, window)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue