mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
disable node integration for chrome scheme
This commit is contained in:
@@ -80,6 +80,9 @@ if (window.location.protocol === 'chrome-devtools:') {
|
||||
// Add implementations of chrome API.
|
||||
require('./chrome-api').injectTo(window.location.hostname, isBackgroundPage, window)
|
||||
nodeIntegration = 'false'
|
||||
} else if (window.location.protocol === 'chrome:') {
|
||||
// Disable node integration for chrome UI scheme.
|
||||
nodeIntegration = 'false'
|
||||
} else {
|
||||
// Override default web functions.
|
||||
require('./override')
|
||||
|
||||
Reference in New Issue
Block a user