yacd/src/misc/sentry.js

10 lines
248 B
JavaScript
Raw Normal View History

2018-12-23 21:42:42 +08:00
const dsn = 'https://7068a15928ae45cf884dd8398fe8649c@sentry.io/1359284';
let Sentry;
export async function getSentry() {
if (Sentry) return Sentry;
const s = await import('@sentry/browser');
s.init({ dsn });
Sentry = s;
return Sentry;
}