From ed5d8116fa3810e1341643a88b347ad34e3dd587 Mon Sep 17 00:00:00 2001 From: Daniel Polito Date: Tue, 16 Aug 2016 13:21:21 -0300 Subject: [PATCH] Improve Slack Message Counting --- 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 ba41b67e..1aab6a85 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -36,7 +36,7 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'Slack brings all your communication together in one place. It’s real-time messaging, archiving and search for modern teams.' ,url: 'https://___.slack.com/' ,type: 'messaging' - ,js_unread: 'function checkUnread(){var t=0;$(".unread_msgs").each(function() { t += parseInt($(this).html()) });$("#im-list .unread_highlights").each(function() { t += parseInt($(this).html()) });updateBadge(t)}function updateBadge(e){e>=1?document.title="("+e+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' + ,js_unread: 'function checkUnread(){var a=0,b=0;$(".unread_msgs").each(function(){a+=parseInt($(this).html())}),$(".unread_highlights").each(function(){b+=parseInt($(this).html())}),updateBadge(a,b)}function updateBadge(a,b){var c=b>0?"("+b+") ":a>0?"(•) ":"";document.title=c.originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' }, { id: 'noysi'