Check of nodeIntegration is strictly equal to false
This commit is contained in:
Родитель
dbe1c1d4e4
Коммит
e5164d2255
|
@ -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.getWebPreferences().nodeIntegration) {
|
||||
if (embedder.getWebPreferences().nodeIntegration === false) {
|
||||
options.webPreferences.nodeIntegration = false
|
||||
}
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче