diff --git a/packages/sdk/src/init/init.ts b/packages/sdk/src/init/init.ts index 661fddd0b..8b748acd5 100644 --- a/packages/sdk/src/init/init.ts +++ b/packages/sdk/src/init/init.ts @@ -62,7 +62,10 @@ export function init(options: InitOptions = {}): InitResult | Promise window.location.reload()); + on('reload_iframe', () => { + postEvent('iframe_will_reload'); + window.location.reload(); + }); } const result: Omit = {