mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
fix: prevent sentry from loading when telemetry is disabled (#10543)
Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
import './env';
|
||||
import './public-path';
|
||||
import './polyfill/browser';
|
||||
import './telemetry';
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
import './env';
|
||||
import './public-path';
|
||||
import './polyfill/electron';
|
||||
import './telemetry';
|
||||
|
||||
4
packages/frontend/core/src/bootstrap/telemetry.ts
Normal file
4
packages/frontend/core/src/bootstrap/telemetry.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { mixpanel, sentry } from '@affine/track';
|
||||
|
||||
mixpanel.init();
|
||||
sentry.init();
|
||||
Reference in New Issue
Block a user