aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/setupSentry.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/setupSentry.js')
-rw-r--r--app/scripts/lib/setupSentry.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/scripts/lib/setupSentry.js b/app/scripts/lib/setupSentry.js
index aa8d72194..69042bc19 100644
--- a/app/scripts/lib/setupSentry.js
+++ b/app/scripts/lib/setupSentry.js
@@ -8,7 +8,7 @@ module.exports = setupSentry
// Setup sentry remote error reporting
function setupSentry (opts) {
- const { release } = opts
+ const { release, getState } = opts
let sentryTarget
// detect brave
const isBrave = Boolean(window.chrome.ipcRenderer)
@@ -38,9 +38,15 @@ function setupSentry (opts) {
simplifyErrorMessages(report)
// modify report urls
rewriteReportUrls(report)
+ // append app state
+ if (getState) {
+ const appState = getState()
+ report.extra.appState = appState
+ }
} catch (err) {
console.warn(err)
}
+ return report
}
return Sentry