Browse Source

Merge pull request saenzramiro/rambox#1661

Squashed commit of the following:

commit d661565c25
Author: Ryan Zumstein <rzumstein@users.noreply.github.com>
Date:   Thu May 31 00:10:26 2018 -0500

    Fix Gmail important count

commit 30abb3a3c0
Author: rzumstein <rzumstein@users.noreply.github.com>
Date:   Mon May 21 01:25:45 2018 -0500

    Show notifications in new Gmail interface
pull/3202/head
TheGoddessInari 7 years ago
parent
commit
e54f63ea61
  1. 2
      app/store/ServicesList.js

2
app/store/ServicesList.js

@ -116,7 +116,7 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://mail.google.com/mail/?labs=0'
,type: 'email'
,allow_popups: true
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("aim")[0];updateBadge(-1!=a.textContent.indexOf("(")&&(t=parseInt(a.textContent.replace(/[^0-9]/g,""))))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);'
,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("aim")[0].textContent.split(":");updateBadge(parseInt(a[a.length-1].replace(/[^0-9]/g,"")))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):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>'
,dont_update_unread_from_title: true
},

Loading…
Cancel
Save