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. */ });