mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix template bug for IE11
This commit is contained in:
parent
76563bfc41
commit
d18b85df16
@ -28,7 +28,10 @@
|
||||
var dummyEl = ns.Template._getDummyEl();
|
||||
dummyEl.innerHTML = html;
|
||||
var element = dummyEl.children[0];
|
||||
|
||||
if (!pskl.utils.UserAgent.isIE11) {
|
||||
dummyEl.innerHTML = '';
|
||||
}
|
||||
|
||||
return element;
|
||||
},
|
||||
@ -78,7 +81,9 @@
|
||||
dummyEl.textContent = string;
|
||||
var sanitizedString = dummyEl.innerHTML;
|
||||
|
||||
if (!pskl.utils.UserAgent.isIE11) {
|
||||
dummyEl.innerHTML = '';
|
||||
}
|
||||
|
||||
return sanitizedString;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user