aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-06-21 06:38:23 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-06-21 06:38:23 +0800
commit044c16219bff7c583b57edeee913dd576930031e (patch)
tree583d7c4212932cc2872480eabbaae5bbb81efe27 /app/scripts/background.js
parentfcf14b7aa7b4a7e9d336eea784e395de29cd84fb (diff)
downloadtangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.tar
tangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.tar.gz
tangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.tar.bz2
tangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.tar.lz
tangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.tar.xz
tangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.tar.zst
tangerine-wallet-browser-044c16219bff7c583b57edeee913dd576930031e.zip
Fix badge number to include personal_sign
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js4
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)
}