Support chrome: and resource: location protocols.
XMLHttpRequest tried to load `chrome:` and `resource:` protocols as if they were not local. Change isFileProtocol flag to accurately represent them.
This commit is contained in:
parent
7a5e10e996
commit
8c89feac3e
@ -2,7 +2,9 @@
|
||||
// browser.js - client-side engine
|
||||
//
|
||||
|
||||
var isFileProtocol = location.protocol === 'file:';
|
||||
var isFileProtocol = (location.protocol === 'file:' ||
|
||||
location.protocol === 'chrome:' ||
|
||||
location.protocol === 'resource:');
|
||||
|
||||
less.env = location.hostname == '127.0.0.1' ||
|
||||
location.hostname == '0.0.0.0' ||
|
||||
|
Loading…
Reference in New Issue
Block a user