From 1c53d1dc075e60f5d67f9a4529fa1bf2b6afc390 Mon Sep 17 00:00:00 2001 From: Juan Manuel Gonzalez Alama Date: Tue, 4 Jun 2019 12:50:58 -0300 Subject: [PATCH] Update ServicesList.js Fix Android Messenger counter. Fixes #2289 (cherry picked from commit e8c664be1c75674619e5915a0ee27d058da9abff) --- 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 cfad3548..b3d7f4f0 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -883,7 +883,7 @@ Ext.define('Hamsket.store.ServicesList', { ,description: 'Text on your computer with Messages for web.' ,url: 'https://messages.google.com/web' ,type: 'messaging' - ,js_unread: 'function updateBadge(){var t = Array.prototype.slice.call(document.querySelectorAll('content div:empty')).reduce(function(c, e){return(window.getComputedStyle(e)["font-weight"]=="600")+c;},0)/4;var n=t>0?"("+t+") ":"";document.title=n+originalTitle}var originalTitle=document.title;setInterval(updateBadge,3e3);' + ,js_unread: 'function checkUnread(){var a=0;document.querySelectorAll(".text-content.unread").forEach(function(b){b.querySelector(".notifications-off")||a++}),updateBadge(a)}function updateBadge(a){1<=a?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);' } ] });