Apply style as far down the document as possible #15

This commit is contained in:
Jason Barnabe 2015-01-31 18:07:23 -06:00
parent 1a8a213b98
commit ce0940c526

View File

@ -52,9 +52,5 @@ function applySections(styleId, sections) {
styleElement.appendChild(document.createTextNode(sections.map(function(section) {
return section.code;
}).join("\n")));
if (document.head) {
document.head.appendChild(styleElement);
} else {
document.documentElement.appendChild(styleElement);
}
document.documentElement.appendChild(styleElement);
}