mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add version to report
This commit is contained in:
parent
cd1e77c0f6
commit
3bfc40c284
@ -1,8 +1,8 @@
|
||||
const ObservableStore = require('obs-store')
|
||||
const normalizeAddress = require('eth-sig-util').normalize
|
||||
const extend = require('xtend')
|
||||
const BugNotifier = require('../lib/bug-notifier')
|
||||
const notifier = new BugNotifier()
|
||||
const notifier = require('../lib/bug-notifier')
|
||||
const { version } = require('../../manifest.json')
|
||||
|
||||
class PreferencesController {
|
||||
|
||||
@ -130,7 +130,7 @@ class PreferencesController {
|
||||
|
||||
// Notify our servers:
|
||||
const uri = 'https://diagnostics.metamask.io/v1/orphanedAccounts'
|
||||
notifier.notify(uri, { accounts: Object.keys(newlyLost) })
|
||||
notifier.notify(uri, { accounts: Object.keys(newlyLost), version })
|
||||
.catch(log.error)
|
||||
|
||||
for (let key in newlyLost) {
|
||||
|
@ -16,5 +16,7 @@ function postData(uri, data) {
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = BugNotifier
|
||||
const notifier = new BugNotifier()
|
||||
|
||||
module.exports = notifier
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user