refactor: make ELECTRON_BROWSER_SANDBOX_LOAD handler async (#17107)

This commit is contained in:
Milan Burda 2019-03-08 11:21:41 +01:00 committed by Alexey Kuzmin
parent 17dab8f239
commit d34f81972d
2 changed files with 10 additions and 6 deletions

View file

@ -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