Browse Source

Fix Outlook 365 unread counter

Co-authored-by: TheGoddessInari <thegoddessinari@gmail.com>
pull/3202/head
Šimek Jakub 6 years ago committed by TheGoddessInari
parent
commit
a0b83884a1
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 4
      app/store/ServicesList.js

4
app/store/ServicesList.js

@ -191,7 +191,7 @@ Ext.define('Hamsket.store.ServicesList', {
,url: 'https://mail.live.com/'
,type: 'email'
,manual_notifications: true
,js_unread: `let checkUnread=()=>{const a=$(".subfolders [role=treeitem]:first .treeNodeRowElement").siblings().last().text();hamsket.updateBadge(""===a?0:parseInt(a))};setInterval(checkUnread,3e3);`
,js_unread: `let checkUnread=()=>{const fav=$(".ms-FocusZone [role=tree]:first i[data-icon-name=Inbox]").siblings()[1],folders=$(".ms-FocusZone [role=tree]:nth(1)")[0].children[1].querySelector("span span"),innerText=fav?fav.innerText:folders?folders.innerText:0,i=parseInt(innerText,10)||0;hamsket.updateBadge(i)};setInterval(checkUnread,3e3);`
},
{
id: 'outlook365'
@ -201,7 +201,7 @@ Ext.define('Hamsket.store.ServicesList', {
,url: 'https://outlook.office.com/owa/'
,type: 'email'
,manual_notifications: true
,js_unread: `let checkUnread=()=>{const a=$(".subfolders [role=treeitem]:first .treeNodeRowElement").siblings().last().text();hamsket.updateBadge(""===a?0:parseInt(a))};setInterval(checkUnread,3e3);`
,js_unread: `let checkUnread=()=>{const fav=$(".ms-FocusZone [role=tree]:first i[data-icon-name=Inbox]").siblings()[1],folders=$(".ms-FocusZone [role=tree]:nth(1)")[0].children[1].querySelector("span span"),innerText=fav?fav.innerText:folders?folders.innerText:0,i=parseInt(innerText,10)||0;hamsket.updateBadge(i)};setInterval(checkUnread,3e3);`
},
{
id: 'yahoo'

Loading…
Cancel
Save