mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced and background on it
This commit is contained in:
committed by
Tienson Qin
parent
ae114afbd8
commit
2ce6dfad41
@@ -173,13 +173,13 @@
|
||||
[]
|
||||
(try
|
||||
(js-invoke js/window.lsPdfViewer "nextPage")
|
||||
(catch js/Error _e nil)))
|
||||
(catch :default _e nil)))
|
||||
|
||||
(defn prev-page
|
||||
[]
|
||||
(try
|
||||
(js-invoke js/window.lsPdfViewer "previousPage")
|
||||
(catch js/Error _e nil)))
|
||||
(catch :default _e nil)))
|
||||
|
||||
(comment
|
||||
(fix-selection-text-breakline "this is a\ntest paragraph")
|
||||
|
||||
Reference in New Issue
Block a user