mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 02:20:28 +00:00
Fixed issue with applying stylesheets on IE
This commit is contained in:
parent
de979a3af2
commit
bbb817d18d
@ -276,7 +276,7 @@ utils.applyStyleSheet = function(id,css) {
|
|||||||
if(el) {
|
if(el) {
|
||||||
el.parentNode.removeChild(el);
|
el.parentNode.removeChild(el);
|
||||||
}
|
}
|
||||||
doc.getElementsByTagName("head")[0].insertAdjacentHTML("beforeEnd",
|
document.getElementsByTagName("head")[0].insertAdjacentHTML("beforeEnd",
|
||||||
' <style id="' + id + '" type="text/css">' + css + '</style>'); // fails without
|
' <style id="' + id + '" type="text/css">' + css + '</style>'); // fails without
|
||||||
} else { // Modern browsers
|
} else { // Modern browsers
|
||||||
if(el) {
|
if(el) {
|
||||||
|
Loading…
Reference in New Issue
Block a user