|
|
|
@ -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) { |
|
|
|
|