mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add first time info to bug report
This commit is contained in:
parent
3bfc40c284
commit
0eacee8e45
@ -33,6 +33,8 @@ class PreferencesController {
|
||||
lostIdentities: {},
|
||||
}, opts.initState)
|
||||
|
||||
this.getFirstTimeInfo = opts.getFirstTimeInfo || null
|
||||
|
||||
this.store = new ObservableStore(initState)
|
||||
}
|
||||
// PUBLIC METHODS
|
||||
@ -130,7 +132,8 @@ class PreferencesController {
|
||||
|
||||
// Notify our servers:
|
||||
const uri = 'https://diagnostics.metamask.io/v1/orphanedAccounts'
|
||||
notifier.notify(uri, { accounts: Object.keys(newlyLost), version })
|
||||
const firstTimeInfo = this.getFirstTimeInfo ? this.getFirstTimeInfo() : {}
|
||||
notifier.notify(uri, { accounts: Object.keys(newlyLost), version, firstTimeInfo })
|
||||
.catch(log.error)
|
||||
|
||||
for (let key in newlyLost) {
|
||||
|
@ -85,6 +85,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
this.preferencesController = new PreferencesController({
|
||||
initState: initState.PreferencesController,
|
||||
initLangCode: opts.initLangCode,
|
||||
getFirstTimeInfo: () => initState.firstTimeInfo,
|
||||
})
|
||||
|
||||
// currency controller
|
||||
|
Loading…
Reference in New Issue
Block a user