Skip to content

Commit

Permalink
fix: telemetry enabled fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Jan 22, 2025
1 parent 5c6793b commit 3ff4c6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions desk/src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ export async function init(ps: PosthogSettings) {
api_host: ps.posthog_host,
autocapture: false,
person_profiles: "identified_only",
capture_pageview: true,
capture_pageleave: true,
disable_session_recording: false,
session_recording: {
maskAllInputs: false,
Expand All @@ -76,7 +74,7 @@ export function capture(
event: string,
options: CaptureOptions = { data: { user: "" } }
) {
if (!telemetry.value.enabled) return;
if (!isTelemetryEnabled()) return;
window.posthog.capture(`${APP}_${event}`, options);
}

Expand Down

0 comments on commit 3ff4c6d

Please sign in to comment.