This commit is contained in:
tophf 2017-08-16 14:06:06 +03:00
parent 93fdd787d4
commit a077de3624

View File

@ -314,8 +314,8 @@ function initDocRootObserver() {
for (const el of styleElements.values()) { for (const el of styleElements.values()) {
if (el.previousElementSibling !== expectedPrevSibling) { if (el.previousElementSibling !== expectedPrevSibling) {
ROOT.insertBefore(el, expectedPrevSibling.nextSibling); ROOT.insertBefore(el, expectedPrevSibling.nextSibling);
expectedPrevSibling = el;
} }
expectedPrevSibling = el;
} }
if (document.body) { if (document.body) {
docRootObserver = null; docRootObserver = null;