From f65182e510a8dc1817dc65a776861f8528c9eb1a Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 25 Jul 2016 19:52:42 -0300 Subject: [PATCH] Fixes #126 --- 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 f2b8d68f..2b3a235c 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 e=document.getElementsByClassName("unread_highlights"),t=0;for(i=0;i=1?document.title="("+e+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' + ,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);' }, { id: 'noysi'