From 07a73686cdcf298d77cb6a43815c370cb5dc3077 Mon Sep 17 00:00:00 2001 From: Bad3r Date: Thu, 15 Dec 2022 03:35:52 +0000 Subject: [PATCH] fix(dev): do not use posthog when dev @andelf same change in https://github.com/logseq/logseq/commit/662a8a919b40db0ff28304682afc6988f0822e0e --- src/main/frontend/modules/instrumentation/posthog.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/modules/instrumentation/posthog.cljs b/src/main/frontend/modules/instrumentation/posthog.cljs index c76e154a17..c1341a99f4 100644 --- a/src/main/frontend/modules/instrumentation/posthog.cljs +++ b/src/main/frontend/modules/instrumentation/posthog.cljs @@ -39,7 +39,8 @@ :loaded (fn [_] (register))}) (defn init [] - (posthog/init token (clj->js config))) + (when-not config/dev? + (posthog/init token (clj->js config)))) (defn opt-out [opt-out?] (if opt-out?