Skip to content

Commit

Permalink
Merge branch 'main' into null-fn-hint
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored Oct 10, 2022
2 parents dac2bbe + f8b0fb1 commit 1a3f822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cljs/athens/util.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -264,21 +264,21 @@
[]
(when config/debug?
(let [el-10x (getElement "--re-frame-10x--")
display-10x (.. el-10x -style -display)]
display-10x (and el-10x (.. el-10x -style -display))]
(not (= "none" display-10x)))))


(defn open-10x
[]
(when config/debug?
(let [el (js/document.querySelector "#--re-frame-10x--")]
(when-let [el (js/document.querySelector "#--re-frame-10x--")]
(setProperties el (clj->js {"style" "display: block"})))))


(defn hide-10x
[]
(when config/debug?
(let [el (js/document.querySelector "#--re-frame-10x--")]
(when-let [el (js/document.querySelector "#--re-frame-10x--")]
(setProperties el (clj->js {"style" "display: none"})))))


Expand Down

0 comments on commit 1a3f822

Please sign in to comment.