2017-01-12 00:36:59 +00:00
|
|
|
'use strict'
|
|
|
|
|
2018-12-13 21:25:12 +00:00
|
|
|
/* global nodeProcess, isolatedWorld */
|
2018-09-22 12:28:50 +00:00
|
|
|
|
2018-12-13 21:25:12 +00:00
|
|
|
// Note: Don't use "process", as it will be replaced by browserify's one.
|
|
|
|
const v8Util = nodeProcess.atomBinding('v8_util')
|
2017-01-12 00:36:59 +00:00
|
|
|
|
2018-12-14 06:38:35 +00:00
|
|
|
const setupWebView = v8Util.getHiddenValue(isolatedWorld, 'setup-webview')
|
|
|
|
if (setupWebView) {
|
|
|
|
setupWebView(window)
|
|
|
|
}
|
|
|
|
|
2018-12-13 21:25:12 +00:00
|
|
|
const isolatedWorldArgs = v8Util.getHiddenValue(isolatedWorld, 'isolated-world-args')
|
|
|
|
const { ipcRenderer, guestInstanceId, hiddenPage, openerId, usesNativeWindowOpen } = isolatedWorldArgs
|
2017-01-12 00:36:59 +00:00
|
|
|
|
2018-12-13 21:25:12 +00:00
|
|
|
require('@electron/internal/renderer/window-setup')(ipcRenderer, guestInstanceId, openerId, hiddenPage, usesNativeWindowOpen)
|