diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-04 03:15:06 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-04 03:15:38 +0800 |
commit | 33b4d213f19c4c8105932b2f8b88421bbbf896d3 (patch) | |
tree | 2046a4c37273fdd7fd1d627f6ce479250c459f18 /app | |
parent | 1b9906372b5e36eb7467c7186e866dba237c8b2f (diff) | |
download | tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.tar tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.tar.gz tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.tar.bz2 tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.tar.lz tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.tar.xz tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.tar.zst tangerine-wallet-browser-33b4d213f19c4c8105932b2f8b88421bbbf896d3.zip |
Fix sendUpdate for new promisified getState method
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/metamask-controller.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 91def2569..c0d2f3b4c 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -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) + }) }) } |