diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 20f021d7..b31f7ff0 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -479,6 +479,15 @@ Ext.define('Rambox.store.ServicesList', { ,url: 'https://kiwiirc.com/client' ,type: 'messaging' ,js_unread: 'function getUnreadCount(){var a=0;$(".activity").each(function(){a+=parseInt($(this).html())});var b=!1;return $(".panel[style*=display: block] .msg").each(function(){b?a++:$(this).hasClass("last_seen")&&(b=!0)}),a}function updateTitle(a){count=getUnreadCount(),cleanTitle=a.match(re),null!==cleanTitle&&cleanTitle.length>1?cleanTitle=cleanTitle[1]:cleanTitle=a,a=count>0?"("+getUnreadCount()+") "+cleanTitle:cleanTitle,$("title").text(a)}var re=/\(\d+\)[ ](.*)/;Object.defineProperty(document,"title",{configurable:!0,set:function(a){updateTitle(a)},get:function(){return $("title").text()}}),setInterval(function(){updateTitle(document.title)},3e3);' + }, + { + id: 'icloud' + ,logo: 'icloud.png' + ,name: 'iCloud Mail' + ,description: 'iCloud makes sure you always have the latest versions of your most important things — documents, photos, notes, contacts, and more — on all your devices. It can even help you locate a missing iPhone, iPad, iPod touch or Mac.' + ,url: 'https://www.icloud.com/#mail' + ,type: 'email' + ,js_unread: 'Object.defineProperty(document,"title",{configurable:!0,set:function(a){var t = document.getElementsByName("mail")[0].contentWindow.document.body.getElementsByClassName("count digit");t = t.length===1?t[0].innerHTML:0;document.getElementsByTagName("title")[0].innerHTML="("+t+") iCloud Mail"},get:function(){return document.getElementsByTagName("title")[0].innerHTML}});' } ] }); diff --git a/resources/icons/icloud.png b/resources/icons/icloud.png new file mode 100644 index 00000000..8eddbb80 Binary files /dev/null and b/resources/icons/icloud.png differ