Skip to content

Commit

Permalink
Merge pull request #379 from khalsah/bug/chrome-extensions
Browse files Browse the repository at this point in the history
Accept 2xx statuses even for file requests
  • Loading branch information
Alexis Sellier committed Dec 10, 2011
2 parents 62e7840 + bddedfc commit 5c94387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function xhr(url, type, callback, errback) {
xhr.send(null);

if (isFileProtocol) {
if (xhr.status === 0) {
if (xhr.status === 0 || (xhr.status >= 200 && xhr.status < 300)) {
callback(xhr.responseText);
} else {
errback(xhr.status, url);
Expand Down

0 comments on commit 5c94387

Please sign in to comment.