Created
May 27, 2024 18:24
-
-
Save oops-wrong/ef0c46ea68412de13faa1aad67b6d772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const messageToInput = (type: ContentMessages, payload = {}) => { | |
getIframeInput()?.contentWindow?.postMessage({ type, payload }, '*'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment