summaryrefslogtreecommitdiff
path: root/src/misc/sentry.js
blob: efedcb3bb4f86506b3e5c2e7f4db2984ffd829e5 (plain)
1
2
3
4
5
6
7
8
9
10
const dsn = 'https://[email protected]/1359284';
let Sentry;
export async function getSentry() {
  if (Sentry) return Sentry;
  const s = await import('@sentry/browser');
  s.init({ dsn });
  // eslint-disable-next-line require-atomic-updates
  Sentry = s;
  return Sentry;
}