browser: implement pdf renderer as webui

This commit is contained in:
deepak1556 2017-01-17 19:53:13 +05:30
parent 48152a813b
commit fdd574cea5
12 changed files with 322 additions and 1 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:') {
} 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'