Disable node integration on webview when disabled on window
This commit is contained in:
parent
e4bd592e0e
commit
8e7bf1051d
1 changed files with 5 additions and 0 deletions
|
@ -182,6 +182,11 @@ var attachGuest = function (embedder, elementInstanceId, guestInstanceId, params
|
||||||
webSecurity: !params.disablewebsecurity,
|
webSecurity: !params.disablewebsecurity,
|
||||||
blinkFeatures: params.blinkfeatures
|
blinkFeatures: params.blinkfeatures
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (embedder.getWebPreferences().nodeIntegration === false) {
|
||||||
|
webPreferences.nodeIntegration = false
|
||||||
|
}
|
||||||
|
|
||||||
if (params.preload) {
|
if (params.preload) {
|
||||||
webPreferences.preloadURL = params.preload
|
webPreferences.preloadURL = params.preload
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue