refactor: make ELECTRON_BROWSER_SANDBOX_LOAD handler async (#17107)
This commit is contained in:
parent
17dab8f239
commit
d34f81972d
2 changed files with 10 additions and 6 deletions
|
@ -27,10 +27,11 @@ for (const prop of Object.keys(EventEmitter.prototype)) {
|
|||
Object.setPrototypeOf(process, EventEmitter.prototype)
|
||||
|
||||
const { ipcRendererInternal } = require('@electron/internal/renderer/ipc-renderer-internal')
|
||||
const ipcRendererUtils = require('@electron/internal/renderer/ipc-renderer-internal-utils')
|
||||
|
||||
const {
|
||||
preloadScripts, isRemoteModuleEnabled, isWebViewTagEnabled, process: processProps
|
||||
} = ipcRendererInternal.sendSync('ELECTRON_BROWSER_SANDBOX_LOAD')
|
||||
} = ipcRendererUtils.invokeSync('ELECTRON_BROWSER_SANDBOX_LOAD')
|
||||
|
||||
process.isRemoteModuleEnabled = isRemoteModuleEnabled
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue