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 });
|
2019-08-17 18:35:40 +08:00
|
|
|
// eslint-disable-next-line require-atomic-updates
|
2018-12-23 21:42:42 +08:00
|
|
|
Sentry = s;
|
|
|
|
return Sentry;
|
|
|
|
}
|