From e630f2a85b36d448816a68f971d0f936125c59d6 Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Sun, 15 Sep 2019 11:29:41 -0700 Subject: [PATCH] Fix gitter notifications. --- app/store/ServicesList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index ce3725654..a99b04fe8 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -160,7 +160,7 @@ Ext.define('Rambox.store.ServicesList', { ,description: locale['services[14]'] ,url: 'https://gitter.im/' ,type: 'messaging' - ,js_unread: `let checkUnread=()=>{const e=document.getElementsByClassName("room-item__unread-indicator");let t=0;for(let i of e){const iTrim=parseInt(i.innerHTML.trim());t+=isNaN(iTrim)?0:parseInt(iTrim)}rambox.updateBadge(t)};setInterval(checkUnread,3e3);` + ,js_unread: `let checkUnread=()=>{const e=document.getElementsByClassName("unread-indicator");let c=0;for(let i of e)c+=parseInt(i.innerHTML.trim(),10)||0;rambox.updateBadge(c)};setInterval(checkUnread,3e3);` }, { id: 'steam'