Skip to content

Commit

Permalink
Merge pull request #2046 from dkrnl/master
Browse files Browse the repository at this point in the history
window.ActiveXObject in IE11: fix boolean casting
  • Loading branch information
lukeapage committed Jun 6, 2014
2 parents fab1401 + 81f949b commit 6da6a01
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 @@ -416,7 +416,7 @@ function pathDiff(url, baseUrl) {
}

function getXMLHttpRequest() {
if (window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject)) {
if (window.XMLHttpRequest && (window.location.protocol !== "file:" || !("ActiveXObject" in window))) {
return new XMLHttpRequest();
} else {
try {
Expand Down

0 comments on commit 6da6a01

Please sign in to comment.