mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: prevent crash in Firefox dev
This commit is contained in:
parent
47e00af6b4
commit
c3baf8b1af
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ 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: IN_PRODUCTION_MODE ? undefined : false,
|
||||
integrations: integrations => integrations.filter(({ name }) => name !== 'TryCatch'),
|
||||
beforeSend(event) {
|
||||
const message = event.exception?.values?.[0].value || event.message
|
||||
|
|
|
|||
Loading…
Reference in a new issue