disable node integration for chrome scheme

This commit is contained in:
deepak1556 2017-02-04 20:19:01 +05:30
parent a4400dc549
commit bd9a9657aa

View file

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