You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says that we're supposed to use defineWindowMessaging in order to communicate with an iFrame, but since it's missing an example, I can't figure out what's missing, but I never seem to receive the message.
// content scriptimport{windowMessaging}from'@/windowMessaging';exportdefaultdefineContentScript({matches: ['<all_urls>'],main(ctx){// Define the UIconstui=createIframeUi(ctx,{page: '/app.html',position: 'inline',anchor: 'body',});// Show UI to userui.mount();setTimeout(()=>{console.log('content: sending test');windowMessaging.sendMessage('test',undefined);},5000);},});
// iframeimport{windowMessaging}from'@/windowMessaging';windowMessaging.onMessage('test',()=>{console.log('iframe: received test');});
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
The documentation says that we're supposed to use
defineWindowMessaging
in order to communicate with an iFrame, but since it's missing an example, I can't figure out what's missing, but I never seem to receive the message.The text was updated successfully, but these errors were encountered: