From a4ea322c758a5788d7a58dd08c82157be2446187 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 29 Jul 2026 13:06:47 -0400 Subject: [PATCH] fix(excalidraw): send ready signal immediately (fix deadlock: iframe waited for init, parent waited for ready) --- frontend/excalidraw-editor.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" } }); }