treker-po-trenirovkam-i-pit.../telemetry-client.js

5 lines
268 B
JavaScript

import * as Sentry from '@sentry/browser';
fetch('/telemetry.json').then(response => response.json()).then(config => {
if (config.dsn) Sentry.init({ ...config, sendDefaultPii: false });
}).catch(() => { /* Optional telemetry must not prevent opening recipes. */ });