mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
chore(core): handle the telemetry warnings in console (#6793)
This commit is contained in:
@@ -15,6 +15,12 @@ export class TelemetryService extends Service {
|
||||
}
|
||||
|
||||
onApplicationStart() {
|
||||
if (process.env.MIXPANEL_TOKEN) {
|
||||
mixpanel.init(process.env.MIXPANEL_TOKEN || '', {
|
||||
track_pageview: true,
|
||||
persistence: 'localStorage',
|
||||
});
|
||||
}
|
||||
const account = this.auth.session.account$.value;
|
||||
if (account) {
|
||||
mixpanel.identify(account.id);
|
||||
|
||||
Reference in New Issue
Block a user