Skip to content

Commit 6da6a01

Browse files
committed
Merge pull request #2046 from dkrnl/master
window.ActiveXObject in IE11: fix boolean casting
2 parents fab1401 + 81f949b commit 6da6a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/less/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ function pathDiff(url, baseUrl) {
416416
}
417417

418418
function getXMLHttpRequest() {
419-
if (window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject)) {
419+
if (window.XMLHttpRequest && (window.location.protocol !== "file:" || !("ActiveXObject" in window))) {
420420
return new XMLHttpRequest();
421421
} else {
422422
try {

0 commit comments

Comments
 (0)