aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-02-03 15:47:00 +0800
committerkumavis <aaron@kumavis.me>2017-02-03 15:47:00 +0800
commit970d4fd69519bab1de972839190a4ede888914bb (patch)
tree43b5dcab6686e3db06218bfff17a943c72e6ddf3 /app
parent9e4ef45b6ac460e6539e0f79ad5c78959fa1c4cb (diff)
downloadtangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.tar
tangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.tar.gz
tangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.tar.bz2
tangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.tar.lz
tangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.tar.xz
tangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.tar.zst
tangerine-wallet-browser-970d4fd69519bab1de972839190a4ede888914bb.zip
metamask - add missing diskState and memState subscriptions
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 2f1623c7b..c0910014f 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -110,26 +110,31 @@ module.exports = class MetamaskController extends EventEmitter {
})
// manual disk state subscriptions
+ this.txManager.store.subscribe((state) => {
+ this.store.updateState({ TransactionManager: state })
+ })
this.keyringController.store.subscribe((state) => {
this.store.updateState({ KeyringController: state })
})
this.preferencesController.store.subscribe((state) => {
this.store.updateState({ PreferencesController: state })
})
- this.txManager.store.subscribe((state) => {
- this.store.updateState({ TransactionManager: state })
- })
this.currencyController.store.subscribe((state) => {
this.store.updateState({ CurrencyController: state })
})
+ this.noticeController.store.subscribe((state) => {
+ this.store.updateState({ NoticeController: state })
+ })
// manual mem state subscriptions
- this.ethStore.subscribe(this.sendUpdate.bind(this))
this.networkStore.subscribe(this.sendUpdate.bind(this))
- this.keyringController.memStore.subscribe(this.sendUpdate.bind(this))
- this.currencyController.store.subscribe(this.sendUpdate.bind(this))
+ this.ethStore.subscribe(this.sendUpdate.bind(this))
this.txManager.memStore.subscribe(this.sendUpdate.bind(this))
this.messageManager.memStore.subscribe(this.sendUpdate.bind(this))
+ this.keyringController.memStore.subscribe(this.sendUpdate.bind(this))
+ this.preferencesController.store.subscribe(this.sendUpdate.bind(this))
+ this.currencyController.store.subscribe(this.sendUpdate.bind(this))
+ this.noticeController.memStore.subscribe(this.sendUpdate.bind(this))
}
//