From 3e456a6e98904819479d7f51b1164bcee637217f Mon Sep 17 00:00:00 2001 From: dguyonvarch Date: Tue, 18 Dec 2018 15:22:26 +0100 Subject: [PATCH] Add teams unread badge --- 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 134aa84c..324dea2a 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -692,7 +692,7 @@ Ext.define('Rambox.store.ServicesList', { ,url: 'https://teams.microsoft.com' ,type: 'messaging' ,userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.2883.87 Safari/537.36' - ,js_unread: 'navigator.__defineGetter__("userAgent", function(){ return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.2883.87 Safari/537.36 Edge/12.246"; });' + ,js_unread: 'function checkUnread() { updateBadge(angular.element(document.documentElement).controller().pageTitleNotificationCount);}function updateBadge(e){e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3000);' }, { id: 'kezmo'