Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix types
Oleg Isonen5a7fdc4e794d
diff --git a/apps/designer/app/shared/dom-utils/on-iframe-load.ts b/apps/designer/app/shared/dom-utils/on-iframe-load.tsindex c287171841..3f32e706d6 100644--- a/apps/designer/app/shared/dom-utils/on-iframe-load.ts+++ b/apps/designer/app/shared/dom-utils/on-iframe-load.ts@@ -2,7 +2,7 @@* Resolve a promise when an iframe has readyState complete.* Checks periodically for the readyState to be complete, because somttimes the load event may simply not fire for various reasons.*/-export const onLoad = (iframe: HTMLIFrameElement) =>+export const onLoad = (iframe: HTMLIFrameElement | null) =>new Promise((resolve) => {if (iframe === null) return;const check = () => {