Skip to content

Commit 6710e2c

Browse files
authored
1 parent 9fbd7e1 commit 6710e2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/snapshot.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ function onceIframeLoaded(
327327
iframeEl.src === blankUrl ||
328328
iframeEl.src === ''
329329
) {
330-
listener();
330+
// iframe was already loaded, make sure we wait to trigger the listener
331+
// till _after_ the mutation that found this iframe has had time to process
332+
setTimeout(listener, 0);
331333
return;
332334
}
333335
// use default listener

0 commit comments

Comments
 (0)