Browse Source

Add teams unread badge

pull/2021/head
dguyonvarch 6 years ago
parent
commit
3e456a6e98
  1. 2
      app/store/ServicesList.js

2
app/store/ServicesList.js

@ -692,7 +692,7 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://teams.microsoft.com' ,url: 'https://teams.microsoft.com'
,type: 'messaging' ,type: 'messaging'
,userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.2883.87 Safari/537.36' ,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' id: 'kezmo'

Loading…
Cancel
Save