Skip to content

Commit

Permalink
feat: show report dialog before sending error
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Aug 21, 2021
1 parent 0784038 commit fcee992
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
})

0 comments on commit fcee992

Please sign in to comment.