From 79f16925aaa1d25e419d38b00945350d604948bb Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 23 Mar 2026 19:25:18 -0700 Subject: [PATCH] fix(canvas): remove TS cast from inline script (Vite builds as JS) Co-Authored-By: Claude Opus 4.6 --- website/canvas.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/canvas.html b/website/canvas.html index da0c701..322e34b 100644 --- a/website/canvas.html +++ b/website/canvas.html @@ -3067,7 +3067,7 @@ // Wire history revert document.querySelector("rstack-history-panel")?.addEventListener("revert-requested", (e) => { - const { hash } = (e as CustomEvent).detail; + const hash = e.detail?.hash; if (hash) sync.revertToHash(hash); });