From 7ef565e271a890d504846551e995262a62161a40 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 5 Mar 2026 13:19:57 +0100 Subject: [PATCH] fix(squint): use removeAttribute instead of js-delete for theme toggle js-delete inside an anonymous function produces `return return delete` in squint output, causing a syntax error that breaks the entire app. --- dev/squint/src/dev/squint.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/squint/src/dev/squint.cljs b/dev/squint/src/dev/squint.cljs index 618d212..9335280 100644 --- a/dev/squint/src/dev/squint.cljs +++ b/dev/squint/src/dev/squint.cljs @@ -31,7 +31,7 @@ (set! (.. el -dataset -theme) (if (= current "dark") "light" "dark")) (js/requestAnimationFrame - #(js-delete (.-dataset el) "noTransitions")))) + (fn [] (.removeAttribute el "data-no-transitions"))))) (defn section [title & children] [:section {:style {"margin-bottom" "2.5rem"}}