Disable node integration in chrome-devtools: URLs

This commit is contained in:
Kevin Sawicki 2017-04-24 10:25:40 -07:00
parent 3f88eb2f86
commit 05b6d91bf4

View file

@ -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)