aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-06-05 06:06:21 +0800
committerDan Finlay <dan@danfinlay.com>2018-06-05 06:06:21 +0800
commit7b87afb4b72b36a581912365501295b685007869 (patch)
tree8bb6d484df74ee1611013dfd1d19fb0ea96666f5 /app/scripts/controllers
parent0eacee8e45a3f9c3cbedf99ac79d0c37a8a9f87f (diff)
downloadtangerine-wallet-browser-7b87afb4b72b36a581912365501295b685007869.tar.gz
tangerine-wallet-browser-7b87afb4b72b36a581912365501295b685007869.tar.zst
tangerine-wallet-browser-7b87afb4b72b36a581912365501295b685007869.zip
Add bug info under metadata key
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/preferences.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index 70fbd1224..0bfb3b5a3 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -133,7 +133,13 @@ class PreferencesController {
// Notify our servers:
const uri = 'https://diagnostics.metamask.io/v1/orphanedAccounts'
const firstTimeInfo = this.getFirstTimeInfo ? this.getFirstTimeInfo() : {}
- notifier.notify(uri, { accounts: Object.keys(newlyLost), version, firstTimeInfo })
+ notifier.notify(uri, {
+ accounts: Object.keys(newlyLost),
+ metadata: {
+ version,
+ firstTimeInfo,
+ },
+ })
.catch(log.error)
for (let key in newlyLost) {