Skip to content

v2.0.4

Choose a tag to compare

@twin-paws twin-paws released this 01 Mar 02:43
· 11 commits to main since this release

fix: call SC.Widget() immediately instead of deferring to iframe load event

The iframe load deferral was unreliable for cross-origin iframes (contentDocument is always null, so readyState check never worked) and the load event could fire before the React effect ran on cached remounts. SC.Widget() uses postMessage internally and handles its own readiness — no need to wait for the iframe load event. Also adds try/catch around SC.Widget() and cleanup to prevent SC API errors from reaching React error boundaries.