aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-10-19 16:36:36 +0800
committerkumavis <aaron@kumavis.me>2018-10-19 16:36:36 +0800
commit26b30a031dacb23cc0a8ec742ece972acdd48594 (patch)
treee5f919f3da0493ca1cf8d70063e84091c4953b0c /app
parent09c3611171dfb033f052a9096833a9e6db34c66b (diff)
downloadtangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.tar
tangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.tar.gz
tangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.tar.bz2
tangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.tar.lz
tangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.tar.xz
tangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.tar.zst
tangerine-wallet-browser-26b30a031dacb23cc0a8ec742ece972acdd48594.zip
sentry - move isBrave decoration to insides of try-catch
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/setupRaven.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/setupRaven.js b/app/scripts/lib/setupRaven.js
index e6e511640..e1dc4bb8b 100644
--- a/app/scripts/lib/setupRaven.js
+++ b/app/scripts/lib/setupRaven.js
@@ -24,10 +24,11 @@ function setupRaven (opts) {
const client = Raven.config(ravenTarget, {
release,
transport: function (opts) {
- opts.data.extra.isBrave = isBrave
const report = opts.data
try {
+ // mark browser as brave or not
+ report.extra.isBrave = isBrave
// handle error-like non-error exceptions
rewriteErrorLikeExceptions(report)
// simplify certain complex error messages (e.g. Ethjs)