browser: implement pdf renderer as webui
This commit is contained in:
parent
48152a813b
commit
fdd574cea5
12 changed files with 322 additions and 1 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:') {
|
||||
} else if (window.location.protocol === 'chrome-extension:' || window.location.protocol === 'chrome:') {
|
||||
// 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