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:
Gabriel Horner
2022-09-22 10:19:35 -04:00
committed by Tienson Qin
parent ae114afbd8
commit 2ce6dfad41
49 changed files with 82 additions and 82 deletions

View File

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