diff --git a/src/components/RpcRoute/RpcRoute.tsx b/src/components/RpcRoute/RpcRoute.tsx index 57531a3a..00259dde 100644 --- a/src/components/RpcRoute/RpcRoute.tsx +++ b/src/components/RpcRoute/RpcRoute.tsx @@ -31,6 +31,10 @@ function RpcRoute() { } }; window.addEventListener('message', listener); + window.parent.postMessage({ + type: 'method', + method: 'ready' + }, '*'); return () => window.removeEventListener('message', listener); }, []);