fix: default integrations was disabled

This commit is contained in:
EnixCoda 2020-01-18 15:39:00 +08:00
parent 0a375876f7
commit cdca3ba4db
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -21,7 +21,6 @@ const sentryOptions: Sentry.BrowserOptions = {
environment: IN_PRODUCTION_MODE ? 'production' : 'development',
// Not safe to activate all integrations in non-Chrome environments where Gitako may not run in top context
// https://docs.sentry.io/platforms/javascript/#sdk-integrations
defaultIntegrations: false,
integrations: integrations => integrations.filter(({ name }) => name !== 'TryCatch'),
beforeSend(event) {
const message = event.exception?.values?.[0].value || event.message