create webui message handler

This commit is contained in:
deepak1556 2017-01-18 19:28:20 +05:30
parent 8a2b9c893e
commit a2db14476a
7 changed files with 101 additions and 17 deletions

View file

@ -76,7 +76,7 @@ if (window.location.protocol === 'chrome-devtools:') {
// Override some inspector APIs.
require('./inspector')
nodeIntegration = 'true'
} else if (window.location.protocol === 'chrome-extension:' || window.location.protocol === 'chrome:') {
} else if (window.location.protocol === 'chrome-extension:') {
// Add implementations of chrome API.
require('./chrome-api').injectTo(window.location.hostname, isBackgroundPage, window)
nodeIntegration = 'false'