Skip to content

fix iframe resize#297

Open
brokenalarms wants to merge 1 commit into
djyde:masterfrom
brokenalarms:iframe-resize
Open

fix iframe resize#297
brokenalarms wants to merge 1 commit into
djyde:masterfrom
brokenalarms:iframe-resize

Conversation

@brokenalarms

@brokenalarms brokenalarms commented Aug 11, 2025

Copy link
Copy Markdown

Solves issues #283 and #191.

Because iframe.js and index.js functions are all put on window, iframe.js was actually calling postMessage function in index.js, which clobbered the actual window.postMessage. The parent function just then sent the message back to the child, so it was not receiving any events.

Fixed by renaming parent function. All code should be in IIFEs to prevent this whole class of errors, but this broke the code entirely and so would need to investigate further to do that.

Also just added object sanity check to window.CUSDIS assignment in the two files so they didn't overwrite each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant