From 2fec009d77c35bda6b83ef50407837bef98835ec Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 21 Apr 2025 13:03:01 -0700 Subject: [PATCH] Fix TS errors (posthogClient) --- src/renderer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer.tsx b/src/renderer.tsx index e697dd0..4beba87 100644 --- a/src/renderer.tsx +++ b/src/renderer.tsx @@ -6,8 +6,10 @@ import { PostHogProvider } from "posthog-js/react"; import posthog from "posthog-js"; import { getTelemetryUserId, isTelemetryOptedIn } from "./hooks/useSettings"; +// @ts-ignore const posthogClient = posthog.init(import.meta.env.VITE_PUBLIC_POSTHOG_KEY, { api_host: "https://us.i.posthog.com", + // @ts-ignore debug: import.meta.env.MODE === "development", autocapture: false, capture_pageview: false,