From 55d957d5afb8b031ada8fdc7f7da98035d4463d5 Mon Sep 17 00:00:00 2001 From: Vulich Fernando <46904390+fvulich@users.noreply.github.com> Date: Tue, 5 Nov 2019 20:27:50 -0300 Subject: [PATCH] Add Unread code to Teams --- 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 93c37f74..caa521d3 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -687,7 +687,7 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'Microsoft Teams is the chat-based workspace in Office 365 that integrates all the people, content, and tools your team needs to be more engaged and effective.' ,url: 'https://teams.microsoft.com' ,type: 'messaging' - ,js_unread: 'Object.defineProperty(navigator.serviceWorker,"register",{value:()=>Promise.reject()});' + ,js_unread: 'function checkUnread(){var e=0;"("===document.title[0]&&(e=parseInt(document.title.replace(/[^0-9]/g,""))),updateBadge(e)}function updateBadge(e){0Promise.reject()});' }, { id: 'kezmo'