aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-01-18 06:59:15 +0800
committerkumavis <aaron@kumavis.me>2018-01-18 06:59:15 +0800
commitdaa62b507a654f6c913725b3c36fc6122b1c088e (patch)
tree660b75f9e66dbd1befc9f26e850c24df29eb4923 /app/scripts/background.js
parent52a1c954f1aec551571d8167858f7f2857273fc9 (diff)
downloadtangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.tar
tangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.tar.gz
tangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.tar.bz2
tangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.tar.lz
tangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.tar.xz
tangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.tar.zst
tangerine-wallet-browser-daa62b507a654f6c913725b3c36fc6122b1c088e.zip
sentry - breakout raven setup and add release config
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index ddd1f5b4f..8c1252d3e 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -12,11 +12,8 @@ const migrations = require('./migrations/')
const PortStream = require('./lib/port-stream.js')
const NotificationManager = require('./lib/notification-manager.js')
const MetamaskController = require('./metamask-controller')
-const firstTimeState = require ('./first-time-state')
-const Raven = require('./vendor/raven.min.js')
-
-// Setup raven / sentry remote error reporting
-Raven.config('https://3567c198f8a8412082d32655da2961d0@sentry.io/273505').install()
+const firstTimeState = require('./first-time-state')
+const setupRaven = require('./setupRaven')
const STORAGE_KEY = 'metamask-config'
const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
@@ -28,6 +25,10 @@ const platform = new ExtensionPlatform()
const notificationManager = new NotificationManager()
global.METAMASK_NOTIFIER = notificationManager
+// setup sentry error reporting
+const release = platform.getVersion()
+setupRaven({ release })
+
let popupIsOpen = false
// state persistence