From dc5a08014c2fa241d288873a029ea2f121b68fbc Mon Sep 17 00:00:00 2001 From: Janez Troha Date: Tue, 1 Feb 2011 09:49:51 -0800 Subject: [PATCH] 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". --- lib/less/browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/less/browser.js b/lib/less/browser.js index b042dc97..d87380c6 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -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' ||