Browse Source

fix: code style

Tienson Qin 4 years ago
parent
commit
7c090a9551
2 changed files with 2 additions and 3 deletions
  1. 1 2
      src/main/frontend/page.cljs
  2. 1 1
      src/main/frontend/ui.cljs

+ 1 - 2
src/main/frontend/page.cljs

@@ -17,7 +17,7 @@
                    (ui/inject-document-devices-envs!)
                    (ui/inject-dynamic-style-node!)
                    (plugin-handler/host-mounted!)
-                   (let [teardown-fn (comp (ui/setup-active-keystroke!))]
+                   (let [teardown-fn (ui/setup-active-keystroke!)]
                      (assoc state ::teardown teardown-fn)))
    :will-unmount (fn [state]
                    (let [teardown (::teardown state)]
@@ -51,4 +51,3 @@
         ;;           :timeout {:enter 300
         ;;                     :exit 200}}
         ;;          (route-view view route-match)))))))
-

+ 1 - 1
src/main/frontend/ui.cljs

@@ -310,7 +310,7 @@
                                         keystroke e.key]
                                     (swap! active-keystroke handler keystroke))
                                   (when (contains? heads (keyword (util/safe-lower-case e.key)))
-                                    (set-global-active-keystroke (str/join  "+" @active-keystroke))))
+                                    (set-global-active-keystroke (str/join "+" @active-keystroke))))
         keydown-handler (partial handle-global-keystroke true)
         keyup-handler (partial handle-global-keystroke false)
         clear-all #(do (set-global-active-keystroke "")