mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
Fix sendUpdate for new promisified getState method
This commit is contained in:
parent
1b9906372b
commit
33b4d213f1
@ -163,8 +163,12 @@ module.exports = class MetamaskController {
|
||||
}
|
||||
|
||||
sendUpdate () {
|
||||
this.listeners.forEach((remote) => {
|
||||
remote.sendUpdate(this.getState())
|
||||
this.getState()
|
||||
.then((state) => {
|
||||
|
||||
this.listeners.forEach((remote) => {
|
||||
remote.sendUpdate(state)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user