mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
IE11 fixes
This commit is contained in:
parent
00d4a1614b
commit
4f15b14b58
@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
isIntegrationTest : function () {
|
isIntegrationTest : function () {
|
||||||
return new window.URL(window.location).searchParams.has('integration-test');
|
return window.location.href.indexOf('integration-test') !== -1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,11 +83,17 @@
|
|||||||
return sanitizedString;
|
return sanitizedString;
|
||||||
},
|
},
|
||||||
|
|
||||||
_getDummyEl : function () {
|
_getDummyEl : pskl.utils.UserAgent.isIE11 ?
|
||||||
if (!ns.Template._dummyEl) {
|
// IE11 specific implementation
|
||||||
ns.Template._dummyEl = document.createElement('div');
|
function () {
|
||||||
}
|
return document.createElement('div');
|
||||||
return ns.Template._dummyEl;
|
}
|
||||||
}
|
// Normal, sane browsers implementation.
|
||||||
|
: function () {
|
||||||
|
if (!ns.Template._dummyEl) {
|
||||||
|
ns.Template._dummyEl = document.createElement('div');
|
||||||
|
}
|
||||||
|
return ns.Template._dummyEl;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user