Check nodeIntegration on embedder's webPreferences

This commit is contained in:
Kevin Sawicki 2016-03-24 13:22:13 -07:00
parent 9e66df23d0
commit dbe1c1d4e4

View file

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