From e8da5472bdb641d6536facf8051e3dd94e2190be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imek=20Jakub?= Date: Wed, 21 Aug 2019 12:22:02 +0200 Subject: [PATCH] Fix Outlook 365 unread counter --- 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 0daaf178..a2da9d04 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -209,7 +209,7 @@ Ext.define('Rambox.store.ServicesList', { ,url: 'https://outlook.office.___/owa/' ,type: 'email' ,manual_notifications: true - ,js_unread: 'function checkUnread(){var a=$(".subfolders [role=treeitem]:first .treeNodeRowElement").siblings().last().text();updateBadge(""===a?0:parseInt(a))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);' + ,js_unread: 'function checkUnread(){var fav=$(".ms-FocusZone [role=tree]:first i[data-icon-name=Inbox]").siblings()[1];var folders=$(".ms-FocusZone [role=tree]:nth(1)")[0].children[1].querySelector("span span");var e=undefined!==fav?fav.innerText:null!==folders?folders.innerText:0;updateBadge(""===e?0:parseInt(e))}function updateBadge(e){1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);' ,note: 'Please insert the cloud region you want to use. Can be "com", "de", etc.' }, {