Pages in chrome extension should not have node integration
This commit is contained in:
parent
9ed4730cba
commit
30dca2b4e1
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ if (window.location.protocol === 'chrome-devtools:') {
|
||||||
} 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, window)
|
require('./chrome-api').injectTo(window.location.hostname, window)
|
||||||
nodeIntegration = 'true'
|
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