Disable node integration on webview when disabled on window

This commit is contained in:
Kevin Sawicki 2016-04-21 11:52:10 -07:00
parent e4bd592e0e
commit 8e7bf1051d

View file

@ -182,6 +182,11 @@ var attachGuest = function (embedder, elementInstanceId, guestInstanceId, params
webSecurity: !params.disablewebsecurity,
blinkFeatures: params.blinkfeatures
}
if (embedder.getWebPreferences().nodeIntegration === false) {
webPreferences.nodeIntegration = false
}
if (params.preload) {
webPreferences.preloadURL = params.preload
}