mirror of
https://github.com/electron/electron.git
synced 2026-01-24 23:08:10 -05:00
Disable webview when nodeIntegration is off
This commit is contained in:
@@ -70,7 +70,7 @@ if (window.location.protocol === 'chrome-devtools:') {
|
||||
require('./override')
|
||||
|
||||
// Load webview tag implementation.
|
||||
if (process.guestInstanceId == null) {
|
||||
if (nodeIntegration === 'true' && process.guestInstanceId == null) {
|
||||
require('./web-view/web-view')
|
||||
require('./web-view/web-view-attributes')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user