This commit is contained in:
Justin Halsall
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 42273eb2e4
commit 1849943d48

View File

@@ -327,7 +327,9 @@ function onceIframeLoaded(
iframeEl.src === blankUrl ||
iframeEl.src === ''
) {
listener();
// iframe was already loaded, make sure we wait to trigger the listener
// till _after_ the mutation that found this iframe has had time to process
setTimeout(listener, 0);
return;
}
// use default listener