Check nodeIntegration on embedder's webPreferences
This commit is contained in:
parent
9e66df23d0
commit
dbe1c1d4e4
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ var mergeBrowserWindowOptions = function (embedder, options) {
|
|||
mergeOptions(options, embedder.browserWindowOptions)
|
||||
|
||||
// Disable node integration on child window if disabled on parent window
|
||||
if (!embedder.browserWindowOptions.webPreferences.nodeIntegration) {
|
||||
if (!embedder.getWebPreferences().nodeIntegration) {
|
||||
options.webPreferences.nodeIntegration = false
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue