From 516fa1c1b78b31540f52cedc3714edc63a53656f Mon Sep 17 00:00:00 2001 From: Juan Manuel Gonzalez Alama Date: Mon, 1 Jul 2019 19:47:43 -0300 Subject: [PATCH] Update ServicesList.js Fix #2325 --- 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 e0f9c9a8..0daaf178 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -487,7 +487,7 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'Ryver is a team communication tool that organizes team collaboration, chats, files, and even emails into a single location, for any size team, for FREE.' ,url: 'https://___.ryver.com/' ,type: 'messaging' - ,js_unread: 'function checkUnread(){updateBadge(parseInt(document.getElementsByClassName("scene-space-tab-button__badge-icon").length))}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);' + ,js_unread: 'function checkUnread(){const elements = document.querySelectorAll(".scene-space-tab-button__badge-icon");let count = 0;for (let i = 0; i < elements.length; i++) {if (elements[i].offsetParent !== null) {count++;}}updateBadge(count);}function updateBadge(count){if(count && count>=1){rambox.setUnreadCount(count);}else{rambox.clearUnreadCount();}}setInterval(checkUnread, 3e3);' }, { id: 'kiwi'