mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
window.ActiveXObject in IE11: fix boolean casting
in Internet Explorer 11:
window.ActiveXObject // function ActiveXObject() {[native code]}
!window.ActiveXObject // *true*
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user