From 76ca900b0e0e5dbc6583955bc5380c26a68f5bf3 Mon Sep 17 00:00:00 2001 From: Simon Sassi Date: Sun, 16 Sep 2018 21:30:40 +0200 Subject: [PATCH] Updated google js_unread in order to be compatible Now compatible with both versions of gmail (older and new one) --- 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 598f8374..c39a6f84 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -113,7 +113,7 @@ Ext.define('Rambox.store.ServicesList', { ,url: 'https://mail.google.com/mail/' ,type: 'email' ,allow_popups: true - ,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);' + ,js_unread: 'function checkUnread(){var e=document.getElementsByClassName(\"aim\")[0];updateBadge(-1!=e.innerHTML.indexOf(\"(\")&&(t=parseInt(e.textContent.replace(\/[^0-9]\/g,\"\"))))}function updateBadge(e){1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);' ,note: 'To enable desktop notifications, you have to go to Settings inside Gmail. Read more...' }, {