use window.location instead of location
This commit is contained in:
parent
6425ef4261
commit
47a61e9f27
3 changed files with 5 additions and 5 deletions
|
@ -65,11 +65,11 @@ for (i = 0, len = ref.length; i < len; i++) {
|
|||
}
|
||||
}
|
||||
|
||||
if (location.protocol === 'chrome-devtools:') {
|
||||
if (window.location.protocol === 'chrome-devtools:') {
|
||||
// Override some inspector APIs.
|
||||
require('./inspector')
|
||||
nodeIntegration = 'true'
|
||||
} else if (location.protocol === 'chrome-extension:') {
|
||||
} else if (window.location.protocol === 'chrome-extension:') {
|
||||
// Add implementations of chrome API.
|
||||
require('./chrome-api')
|
||||
nodeIntegration = 'true'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue