From fedab52ba096e172acbbcc1fdf0b976f399f792c Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Tue, 6 Sep 2016 15:21:53 -0300 Subject: [PATCH] Added unread badge to Yahoo Messenger Fixes #164 --- app/store/ServicesList.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 76250a32..8ddd3e61 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -277,6 +277,7 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'Allows you to instant message with anyone on the Yahoo server. Tells you when you get mail, and gives stock quotes.' ,url: 'https://messenger.yahoo.com/' ,type: 'messaging' + ,js_unread: 'function checkUnread(){updateBadge(document.getElementsByClassName("list-item-unread-indicator").length)}function updateBadge(e){e>=1?document.title="("+e+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' }, { id: 'voxer'