From 87290a541b77685384c1cfa106d9b4664356560d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey?= Date: Wed, 12 Sep 2018 13:58:17 +0200 Subject: [PATCH] Inbox: fix update badge function. How was this even working before? --- 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 d39c4a0b..8120f9c9 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -124,7 +124,7 @@ Ext.define('Rambox.store.ServicesList', { ,url: 'https://inbox.google.com/?cid=imp' ,type: 'email' ,manual_notifications: true - ,js_unread: 'function checkUnread() {if(getComputedStyle(document.getElementsByClassName("sM")[0])["font-weight"] == "bold"){updateBadge(document.getElementsByClassName("ss").length)}} function updateBadge(a){a>=1?document.title="("+a+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3e3);' + ,js_unread: 'function checkUnread() {if(getComputedStyle(document.getElementsByClassName("sM")[0])["font-weight"] == "bold"){updateBadge(document.getElementsByClassName("ss").length)}} function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()};setInterval(checkUnread,3e3);' ,note: 'Please be sure to sign out of Hangouts inside Inbox, as it causes problems. Read more...' }, {