create webui message handler
This commit is contained in:
parent
8a2b9c893e
commit
a2db14476a
7 changed files with 101 additions and 17 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue