From 93136b9635698e2e169aff4a3ab056be8ce0962b Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Fri, 2 Sep 2016 02:42:59 -0300 Subject: [PATCH] Added Inbox Desktop Notifications Fixes #159 --- 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 d7d2872b..05f53d43 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -119,7 +119,7 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'Inbox by Gmail is a new app from the Gmail team. Inbox is an organized place to get things done and get back to what matters. Bundles keep emails organized.' ,url: 'http://inbox.google.com/?cid=imp' ,type: 'email' - ,js_unread: 'function checkUnread(){updateBadge(document.getElementsByClassName("qG").length)}function updateBadge(e){e>=1?document.title="("+e+") "+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);' + ,js_unread: 'function checkUnread(){updateBadge(document.getElementsByClassName("ss").length)}function updateBadge(a){a>=1?document.title="("+a+") "+originalTitle:document.title=originalTitle,checked&&a>oldUnread&&new Notification("Inbox",{body:"You have a new email",icon:"https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/icons/inbox.png"}),checked=!0,oldUnread=a}var checked=!1,oldUnread,originalTitle=document.title;setInterval(checkUnread,3e3);' }, { id: 'chatwork'