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 () {
|
||||
return new window.URL(window.location).searchParams.has('integration-test');
|
||||
return window.location.href.indexOf('integration-test') !== -1;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -83,7 +83,13 @@
|
||||
return sanitizedString;
|
||||
},
|
||||
|
||||
_getDummyEl : function () {
|
||||
_getDummyEl : pskl.utils.UserAgent.isIE11 ?
|
||||
// IE11 specific implementation
|
||||
function () {
|
||||
return document.createElement('div');
|
||||
}
|
||||
// Normal, sane browsers implementation.
|
||||
: function () {
|
||||
if (!ns.Template._dummyEl) {
|
||||
ns.Template._dummyEl = document.createElement('div');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user