mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: clean compile warnings
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
[clojure.string :as string]
|
||||
[frontend.util :as util]))
|
||||
|
||||
#?(:cljs (set! *warn-on-infer* false))
|
||||
|
||||
;; ======================================================================
|
||||
;; Interpreter
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
;; Log thrown exceptions from comlink
|
||||
;; https://github.com/GoogleChromeLabs/comlink/blob/dffe9050f63b1b39f30213adeb1dd4b9ed7d2594/src/comlink.ts#L223-L236
|
||||
(if (and (= "HANDLER" (.-type data)) (= "throw" (.-name data)))
|
||||
(if (.-isError (.-value data))
|
||||
(if (.-isError (.-value ^js data))
|
||||
(do (js/console.error "Unexpected webworker error:" (-> data bean/->clj (get-in [:value :value])))
|
||||
(js/console.log (get-in (bean/->clj data) [:value :value :stack])))
|
||||
(js/console.error "Unexpected webworker error :" data))
|
||||
|
||||
Reference in New Issue
Block a user