code cosmetics

This commit is contained in:
tophf 2017-06-25 13:13:07 +03:00
parent c0fe8dbf43
commit 93a4f4704f

View File

@ -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;