aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-06-23 23:00:58 +0800
committerDan Finlay <dan@danfinlay.com>2017-06-23 23:00:58 +0800
commitb04d1de44733065fe6762542eca843a7d9e3d099 (patch)
tree2086d693e02e5ef0570acb9f3b5dfe8a78e5ce65 /app/scripts/background.js
parent97ab48ba0d5c0699b4ec0ad4bbc3d9c8805ef048 (diff)
parentf022c7c714e17faf9558839116ba90ca8082e6b1 (diff)
downloadtangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.tar
tangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.tar.gz
tangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.tar.bz2
tangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.tar.lz
tangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.tar.xz
tangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.tar.zst
tangerine-wallet-browser-b04d1de44733065fe6762542eca843a7d9e3d099.zip
Merge branch 'master' into i784-SendTokenButton
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)
}