Skip to content

Conversation

@brokenalarms
Copy link

@brokenalarms brokenalarms commented Aug 11, 2025

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant