User feedback onClose callback

I was looking into a way of hooking up a callback to the user feedback modal so that we redirect users away from the location they encountered an issue in once they submit feedback or dismiss the modal. Something like:

window.Raven.showReportDialog({ onClose: function () { ... } })

I saw that in raven-js options can be passed into showReportDialog(), but it looks like it’s not possible to pass on any functions due to the nature of how the modal is requested and embedded from the sentry backend.

Do you have any pointers on how to best tackle this?

1 Like

@arya-s – we’ll add that callback. I’ve opened up an issue on raven-js: