Skip to content

Commit

Permalink
deploy: e897eeb
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Apr 18, 2024
1 parent 8b70492 commit cbc9b2b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions js/iframeResizer.contentWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1297,9 +1297,15 @@
}
}

addEventListener(window, 'message', receiver)
addEventListener(window, 'readystatechange', chkLateLoaded)
chkLateLoaded()
// Setup if not already running
if (!('iframeResizer' in window)) {
window.iframeChildListener = function (data) {
receiver({ data, sameDomian: true })
}
addEventListener(window, 'message', receiver)
addEventListener(window, 'readystatechange', chkLateLoaded)
chkLateLoaded()
}


})()

0 comments on commit cbc9b2b

Please sign in to comment.