Browse Source

Fixed gmail counter

pull/2290/head
AXeL-dev 6 years ago
parent
commit
f30ef73ffe
  1. 2
      app/store/ServicesList.js

2
app/store/ServicesList.js

@ -120,7 +120,7 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://mail.google.com/mail/'
,type: 'email'
,allow_popups: true
,js_unread: 'function checkUnread(){var e=document.querySelector(".aim .aio").querySelector("span").querySelector("a").getAttribute("aria-label").replace(/\D/g,"");updateBadge(e?parseInt(e):0)}function updateBadge(e){1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,js_unread: 'function checkUnread(){var e=document.getElementsByClassName("bsU"),n=0;for(i=0;i<e.length;i++)n+=parseInt(e[i].innerHTML.trim());updateBadge(n)}function updateBadge(e){e&&1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,note: 'To enable desktop notifications, you have to go to Settings inside Gmail. <a href="https://support.google.com/mail/answer/1075549?ref_topic=3394466" target="_blank">Read more...</a>'
},
{

Loading…
Cancel
Save