aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-01-04 04:19:33 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-01-04 04:19:33 +0800
commitb571913dafa1d9fd192cc5c127efcdf45394408f (patch)
treee08c7e5bc3a44d752d05d47da1c94375a64f542e
parent1a1605785706a82f89b624d925f55979941df627 (diff)
parent0ba63e0ead02e03e094788a874e185f38e0624be (diff)
downloadtangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.tar
tangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.tar.gz
tangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.tar.bz2
tangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.tar.lz
tangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.tar.xz
tangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.tar.zst
tangerine-wallet-browser-b571913dafa1d9fd192cc5c127efcdf45394408f.zip
Merge branch 'dev' of github.com:MetaMask/metamask-plugin into dev
-rw-r--r--app/scripts/metamask-controller.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 3e27272b9..c0d2f3b4c 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -60,6 +60,8 @@ module.exports = class MetamaskController {
this.idStoreMigrator = new IdStoreMigrator({
configManager: this.configManager,
})
+
+ this.ethStore.on('update', this.sendUpdate.bind(this))
}
getState () {
@@ -161,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)
+ })
})
}