fix(excalidraw): send ready signal immediately (fix deadlock: iframe waited for init, parent waited for ready)
CI / lint (push) Failing after 10s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 14s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled

This commit is contained in:
2026-07-29 13:06:47 -04:00
parent 7e5cd85b8a
commit a4ea322c75
+3 -1
View File
@@ -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" } });
}