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:
@@ -31,7 +31,7 @@
|
|||||||
(set! (.. el -dataset -theme)
|
(set! (.. el -dataset -theme)
|
||||||
(if (= current "dark") "light" "dark"))
|
(if (= current "dark") "light" "dark"))
|
||||||
(js/requestAnimationFrame
|
(js/requestAnimationFrame
|
||||||
#(js-delete (.-dataset el) "noTransitions"))))
|
(fn [] (.removeAttribute el "data-no-transitions")))))
|
||||||
|
|
||||||
(defn section [title & children]
|
(defn section [title & children]
|
||||||
[:section {:style {"margin-bottom" "2.5rem"}}
|
[:section {:style {"margin-bottom" "2.5rem"}}
|
||||||
|
|||||||
Reference in New Issue
Block a user