This commit is contained in:
parent
7073e8d9dd
commit
1a4a76d7fa
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import {trackEvent} from "@/Utils";
|
||||
import { trackEvent } from "@/Utils";
|
||||
|
||||
interface ErrorBoundaryState {
|
||||
hasError: boolean;
|
||||
|
@ -538,7 +538,11 @@ export function trackEvent(
|
||||
props?: Record<string, string | boolean>,
|
||||
e?: { destination?: { url: string } },
|
||||
) {
|
||||
if (!import.meta.env.DEV && CONFIG.features.analytics && (LoginStore.snapshot().appData.item.preferences.telemetry ?? true)) {
|
||||
if (
|
||||
!import.meta.env.DEV &&
|
||||
CONFIG.features.analytics &&
|
||||
(LoginStore.snapshot().appData.item.preferences.telemetry ?? true)
|
||||
) {
|
||||
fetch("https://analytics.v0l.io/api/event", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
|
Loading…
Reference in New Issue
Block a user