diff --git a/sentry.client.config.js b/sentry.client.config.js index 3f91ac0dd..bb30b8d25 100644 --- a/sentry.client.config.js +++ b/sentry.client.config.js @@ -14,4 +14,11 @@ Sentry.init({ // Note: if you want to override the automatic release value, do not set a // `release` value here - use the environment variable `SENTRY_RELEASE`, so // that it will also get attached to your source maps + beforeSend(event, hint) { + // Check if it is an exception, and if so, show the report dialog + if (event.exception) { + Sentry.showReportDialog({ eventId: event.event_id }) + } + return event + }, })