16 lines
621 B
JavaScript
16 lines
621 B
JavaScript
'use strict'
|
|
|
|
/* global nodeProcess, isolatedWorld */
|
|
|
|
// Note: Don't use "process", as it will be replaced by browserify's one.
|
|
const v8Util = nodeProcess.atomBinding('v8_util')
|
|
|
|
const setupWebView = v8Util.getHiddenValue(isolatedWorld, 'setup-webview')
|
|
if (setupWebView) {
|
|
setupWebView(window)
|
|
}
|
|
|
|
const isolatedWorldArgs = v8Util.getHiddenValue(isolatedWorld, 'isolated-world-args')
|
|
const { ipcRenderer, guestInstanceId, isHiddenPage, openerId, usesNativeWindowOpen } = isolatedWorldArgs
|
|
|
|
require('@electron/internal/renderer/window-setup')(ipcRenderer, guestInstanceId, openerId, isHiddenPage, usesNativeWindowOpen)
|