mirror of https://github.com/logseq/logseq
fix: catch capture errors
parent
b05e53d371
commit
77eea65310
|
@ -39,7 +39,11 @@
|
|||
(posthog/opt_in_capturing))))
|
||||
|
||||
(defn capture [id data]
|
||||
(posthog/capture (str id) (bean/->js data)))
|
||||
(try
|
||||
(posthog/capture (str id) (bean/->js data))
|
||||
(catch js/Error _e
|
||||
;; opt out or network issues
|
||||
nil)))
|
||||
|
||||
(comment
|
||||
(posthog/debug))
|
||||
|
|
Loading…
Reference in New Issue