disable node integration for chrome scheme
This commit is contained in:
parent
a4400dc549
commit
bd9a9657aa
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ if (window.location.protocol === 'chrome-devtools:') {
|
||||||
// Add implementations of chrome API.
|
// Add implementations of chrome API.
|
||||||
require('./chrome-api').injectTo(window.location.hostname, isBackgroundPage, window)
|
require('./chrome-api').injectTo(window.location.hostname, isBackgroundPage, window)
|
||||||
nodeIntegration = 'false'
|
nodeIntegration = 'false'
|
||||||
|
} else if (window.location.protocol === 'chrome:') {
|
||||||
|
// Disable node integration for chrome UI scheme.
|
||||||
|
nodeIntegration = 'false'
|
||||||
} else {
|
} else {
|
||||||
// Override default web functions.
|
// Override default web functions.
|
||||||
require('./override')
|
require('./override')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue