fix: prevent sentry from loading when telemetry is disabled (#10543)

Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
hackerESQ
2025-03-05 06:09:38 -06:00
committed by GitHub
parent b247b8e26c
commit fed0e0add3
16 changed files with 122 additions and 200 deletions

View File

@@ -2,3 +2,4 @@
import './env';
import './public-path';
import './polyfill/browser';
import './telemetry';

View File

@@ -2,3 +2,4 @@
import './env';
import './public-path';
import './polyfill/electron';
import './telemetry';

View File

@@ -0,0 +1,4 @@
import { mixpanel, sentry } from '@affine/track';
mixpanel.init();
sentry.init();