fix dom listener bug (#3095)

This commit is contained in:
LawyZheng
2025-08-04 11:10:49 +08:00
committed by GitHub
parent f2510bf2b7
commit f33906509f

View File

@@ -2579,8 +2579,10 @@ async function stopGlobalIncrementalObserver() {
window.globalObserverForDOMIncrement.disconnect();
window.globalObserverForDOMIncrement.takeRecords(); // cleanup the older data
while (
window.globalParsedElementCounter &&
window.globalOneTimeIncrementElements &&
(await window.globalParsedElementCounter.get()) <
window.globalOneTimeIncrementElements.length
window.globalOneTimeIncrementElements.length
) {
await asyncSleepFor(100);
}