From c55c03d6f5ebe02c7291e637f3d842a3f63eaa8c Mon Sep 17 00:00:00 2001 From: Jakob Struye Date: Sat, 21 Oct 2017 13:37:04 +0200 Subject: [PATCH] FastMail: added js_unread taking all folders into account; added note about enabling desktop notifications --- app/store/ServicesList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 90b03ce0..dd5fcd60 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -750,7 +750,8 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'Secure, reliable email hosting for businesses, families and professionals. Premium email with no ads, excellent spam protection and rapid personal support.' ,url: 'https://www.fastmail.com/mail/' ,type: 'mail' - ,js_unread: 'setTimeout(function(){O.WindowController.openExternal=function(a){var b=document.createElement("a");b.href=a,b.setAttribute("target","_blank"),b.click()};},3000);' + ,js_unread: 'function checkUnread(){var e=document.getElementsByClassName("v-FolderSource-badge"),t=0;for(i=0;i=1?document.title="("+e+")"+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);setTimeout(function(){O.WindowController.openExternal=function(a){var b=document.createElement("a");b.href=a,b.setAttribute("target","_blank"),b.click()};},3000);' + ,note: 'To enable desktop notifications, you have to go to Settings inside FastMail.' }, { id: 'hibox'