Apply style as far down the document as possible #15
This commit is contained in:
parent
1a8a213b98
commit
ce0940c526
4
apply.js
4
apply.js
|
@ -52,9 +52,5 @@ function applySections(styleId, sections) {
|
||||||
styleElement.appendChild(document.createTextNode(sections.map(function(section) {
|
styleElement.appendChild(document.createTextNode(sections.map(function(section) {
|
||||||
return section.code;
|
return section.code;
|
||||||
}).join("\n")));
|
}).join("\n")));
|
||||||
if (document.head) {
|
|
||||||
document.head.appendChild(styleElement);
|
|
||||||
} else {
|
|
||||||
document.documentElement.appendChild(styleElement);
|
document.documentElement.appendChild(styleElement);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user