diff --git a/frontend/excalidraw-editor.html b/frontend/excalidraw-editor.html index c5debc6..375dfbe 100644 --- a/frontend/excalidraw-editor.html +++ b/frontend/excalidraw-editor.html @@ -134,6 +134,9 @@ window.parent.postMessage(msg, "*"); } + // Signal that the iframe is loaded and ready to receive init data + sendToParent({ type: "ready" }); + function markDirty() { if (!isDirty) { isDirty = true; @@ -186,7 +189,6 @@ if (api) { excalidrawAPI = api; loadingEl.classList.add("hidden"); - sendToParent({ type: "ready" }); if (theme === "dark") { api.updateScene({ appState: { theme: "dark" } }); }