Disable node integration in chrome-devtools: URLs
This commit is contained in:
parent
3f88eb2f86
commit
05b6d91bf4
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ for (let arg of process.argv) {
|
||||||
if (window.location.protocol === 'chrome-devtools:') {
|
if (window.location.protocol === 'chrome-devtools:') {
|
||||||
// Override some inspector APIs.
|
// Override some inspector APIs.
|
||||||
require('./inspector')
|
require('./inspector')
|
||||||
nodeIntegration = 'true'
|
nodeIntegration = 'false'
|
||||||
} else if (window.location.protocol === 'chrome-extension:') {
|
} else if (window.location.protocol === 'chrome-extension:') {
|
||||||
// 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)
|
||||||
|
|
Loading…
Reference in a new issue