diff --git a/app/client/components/WidgetFrame.ts b/app/client/components/WidgetFrame.ts index 3b714f10..3eb9ad54 100644 --- a/app/client/components/WidgetFrame.ts +++ b/app/client/components/WidgetFrame.ts @@ -68,6 +68,9 @@ export class WidgetFrame extends DisposableWithEvents { // Build RPC object and connect it to iframe. this._rpc = new Rpc({}); + // queue until iframe's content emit ready() message + this._rpc.queueOutgoingUntilReadyMessage(); + // Register outgoing message handler. this._rpc.setSendMessage(msg => this._iframe?.contentWindow!.postMessage(msg, '*'));