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.
This commit is contained in:
Florian Schroedl
2026-03-05 13:19:57 +01:00
parent 425d00529e
commit 7ef565e271

View File

@@ -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"}}