From 93a4f4704f53f1fad9470fcabc445c0742889db8 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 25 Jun 2017 13:13:07 +0300 Subject: [PATCH] code cosmetics --- apply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apply.js b/apply.js index ae25e788..2d85356a 100644 --- a/apply.js +++ b/apply.js @@ -212,8 +212,8 @@ function applyStyles(styles) { } }); } - // TODO: remove when https://bugzilla.mozilla.org/show_bug.cgi?id=1375358 is fixed if (styleElements.size && !document.head && !docHeadObserver) { + // HEAD is not yet present so we'll wait for it and move the style elements docHeadObserver = new MutationObserver(() => { docHeadObserver.disconnect(); docHeadObserver = null;