Merge branch 'master' of https://github.com/openstyles/stylus
This commit is contained in:
commit
465cdec625
|
@ -459,7 +459,11 @@
|
|||
if (sorting) {
|
||||
sorting = false;
|
||||
docRootObserver.takeRecords();
|
||||
start();
|
||||
if (!restorationLimitExceeded()) {
|
||||
start();
|
||||
} else {
|
||||
setTimeout(start, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
function isMovable(el) {
|
||||
|
@ -474,9 +478,6 @@
|
|||
}
|
||||
function moveAfter(el, expected) {
|
||||
if (!sorting) {
|
||||
if (restorationLimitExceeded()) {
|
||||
return false;
|
||||
}
|
||||
sorting = true;
|
||||
docRootObserver.stop();
|
||||
}
|
||||
|
@ -493,11 +494,7 @@
|
|||
restorationCounter = 0;
|
||||
}
|
||||
lastRestorationTime = t;
|
||||
if (++restorationCounter > 100) {
|
||||
console.error('Stylus stopped restoring userstyle elements after 100 failed attempts.\n' +
|
||||
'Please report on https://github.com/openstyles/stylus/issues');
|
||||
return true;
|
||||
}
|
||||
return ++restorationCounter > 2;
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue
Block a user