mirror of
https://github.com/less/less.js.git
synced 2026-01-23 22:27:57 -05:00
Fix for Google Chrome(Chromium), so you can use less in extensions, apps. Adds protocol support but you have to use .json as file extension for css file, otherwise you get "Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101".
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
var isFileProtocol = (location.protocol === 'file:' ||
|
||||
location.protocol === 'chrome:' ||
|
||||
location.protocol === 'chrome-extension:' ||
|
||||
location.protocol === 'resource:');
|
||||
|
||||
less.env = less.env || (location.hostname == '127.0.0.1' ||
|
||||
|
||||
Reference in New Issue
Block a user