fix dom listener bug (#3095)
This commit is contained in:
@@ -2579,8 +2579,10 @@ async function stopGlobalIncrementalObserver() {
|
|||||||
window.globalObserverForDOMIncrement.disconnect();
|
window.globalObserverForDOMIncrement.disconnect();
|
||||||
window.globalObserverForDOMIncrement.takeRecords(); // cleanup the older data
|
window.globalObserverForDOMIncrement.takeRecords(); // cleanup the older data
|
||||||
while (
|
while (
|
||||||
|
window.globalParsedElementCounter &&
|
||||||
|
window.globalOneTimeIncrementElements &&
|
||||||
(await window.globalParsedElementCounter.get()) <
|
(await window.globalParsedElementCounter.get()) <
|
||||||
window.globalOneTimeIncrementElements.length
|
window.globalOneTimeIncrementElements.length
|
||||||
) {
|
) {
|
||||||
await asyncSleepFor(100);
|
await asyncSleepFor(100);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user