This commit is contained in:
Justin Halsall
2021-06-06 15:52:51 +02:00
committed by GitHub
parent 9fbd7e1661
commit 6710e2c0e3

View File

@@ -327,7 +327,9 @@ function onceIframeLoaded(
iframeEl.src === blankUrl || iframeEl.src === blankUrl ||
iframeEl.src === '' 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; return;
} }
// use default listener // use default listener