Browse Source

Fixed Slack unread code

pull/594/merge
Ramiro Saenz 8 years ago
parent
commit
35a3c73d61
  1. 2
      app/store/ServicesList.js

2
app/store/ServicesList.js

@ -38,7 +38,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 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);'
,js_unread: 'function checkUnread(){var a=0,b=0;$(".unread_msgs").each(function(){a+=isNaN(parseInt($(this).html())) ? 0 : parseInt($(this).html())}),$(".unread_highlights").each(function(){b+=isNaN(parseInt($(this).html())) ? 0 : 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'

Loading…
Cancel
Save