From ce0940c5269af13eeec79ac5e5021caa7726dc4b Mon Sep 17 00:00:00 2001 From: Jason Barnabe Date: Sat, 31 Jan 2015 18:07:23 -0600 Subject: [PATCH] Apply style as far down the document as possible #15 --- apply.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apply.js b/apply.js index ce8ddaf9..5429a4ab 100644 --- a/apply.js +++ b/apply.js @@ -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); }