Skip to content

Commit

Permalink
feat: ready message
Browse files Browse the repository at this point in the history
  • Loading branch information
esaminu committed Sep 30, 2023
1 parent d598df6 commit a743dad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/RpcRoute/RpcRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ function RpcRoute() {
}
};
window.addEventListener('message', listener);
window.parent.postMessage({
type: 'method',
method: 'ready'
}, '*');
return () => window.removeEventListener('message', listener);
}, []);

Expand Down

0 comments on commit a743dad

Please sign in to comment.