diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-06-23 20:41:17 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-06-23 20:50:44 +0800 |
commit | 06706f6e1bc721ce8186d694f75b520c1e13124b (patch) | |
tree | 7b41f007ec77c07a8b28416a218605a48ffa6831 /app | |
parent | 027394b2058b31daa399c582c82f0c0b01571144 (diff) | |
parent | f022c7c714e17faf9558839116ba90ca8082e6b1 (diff) | |
download | tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.tar tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.tar.gz tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.tar.bz2 tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.tar.lz tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.tar.xz tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.tar.zst tangerine-wallet-browser-06706f6e1bc721ce8186d694f75b520c1e13124b.zip |
Merge branch 'master' into i1616-AddTokenAdding
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/background.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 1dbfb1b98..e8987394f 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -116,13 +116,15 @@ function setupController (initState) { updateBadge() controller.txController.on('updateBadge', updateBadge) controller.messageManager.on('updateBadge', updateBadge) + controller.personalMessageManager.on('updateBadge', updateBadge) // plugin badge text function updateBadge () { var label = '' var unapprovedTxCount = controller.txController.unapprovedTxCount var unapprovedMsgCount = controller.messageManager.unapprovedMsgCount - var count = unapprovedTxCount + unapprovedMsgCount + var unapprovedPersonalMsgs = controller.personalMessageManager.unapprovedPersonalMsgCount + var count = unapprovedTxCount + unapprovedMsgCount + unapprovedPersonalMsgs if (count) { label = String(count) } |