From e54f63ea61d0ed972c3b6cd6aa18ac95e9aec451 Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Fri, 20 Jul 2018 16:21:27 -0700 Subject: [PATCH] Merge pull request saenzramiro/rambox#1661 Squashed commit of the following: commit d661565c25954ba5c07e83180dba2c814a043804 Author: Ryan Zumstein Date: Thu May 31 00:10:26 2018 -0500 Fix Gmail important count commit 30abb3a3c0c6044adef2e62b1335fd9eecdab6b7 Author: rzumstein Date: Mon May 21 01:25:45 2018 -0500 Show notifications in new Gmail interface --- app/store/ServicesList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index d612ac81..cbda4b13 100644 --- a/app/store/ServicesList.js +++ b/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. Read more...' ,dont_update_unread_from_title: true },