Line data Source code
1 : import { captureException, isEnabled as isSentryEnabled } from '@sentry/vue'
2 :
3 : import { configureErrorReporter } from '@comfyorg/telemetry/reportError'
4 :
5 : import { isCloud } from '@/platform/distribution/types'
6 :
7 : import { isHostTelemetryEnabled } from './hostTelemetryEnabled'
8 :
9 2356 : configureErrorReporter({
10 : captureException,
11 : isSentryEnabled,
12 : isCloud: () => isCloud,
13 : isHostTelemetryEnabled,
14 : getDesktopTelemetry: () => window.__comfyDesktop2?.Telemetry
15 : })
|