Browse Source

Improve unread counter in Gmail

Fixes #51
Fixes #257
pull/291/merge
Ramiro Saenz 9 years ago
parent
commit
1bb4482cc0
  1. 2
      app/store/ServicesList.js

2
app/store/ServicesList.js

@ -107,6 +107,8 @@ Ext.define('Rambox.store.ServicesList', {
,description: 'Gmail, Google\'s free email service, is one of the world\'s most popular email programs.' ,description: 'Gmail, Google\'s free email service, is one of the world\'s most popular email programs.'
,url: 'https://mail.google.com/mail/' ,url: 'https://mail.google.com/mail/'
,type: 'email' ,type: 'email'
,js_unread: 'Object.defineProperty(document,"title",{configurable:!0,set:function(a){var b=document.getElementsByClassName("aim")[0];t=0,b.textContent.indexOf("(")!=-1&&(t=parseInt(b.textContent.replace(/[^0-9]/g,""))),document.getElementsByTagName("title")[0].innerHTML="("+t+") Gmail"},get:function(){return document.getElementsByTagName("title")[0].innerHTML}});'
,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>'
}, },
{ {
id: 'inbox' id: 'inbox'

Loading…
Cancel
Save