From ce487bdfb1ad42f9e72f8bdafd63a7c5c8249dea Mon Sep 17 00:00:00 2001 From: Vulich Fernando <46904390+fvulich@users.noreply.github.com> Date: Wed, 25 Mar 2020 16:23:03 -0300 Subject: [PATCH] Update services.json --- api/services.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services.json b/api/services.json index bb914eb0..09c2b065 100644 --- a/api/services.json +++ b/api/services.json @@ -608,7 +608,7 @@ "type": "messaging", "allow_popups": false, "manual_notifications": false, - "js_unread": "function checkUnread(){var t=0;[].map.call(document.querySelectorAll(\".bufferBadges > .badge\"),n=>n.textContent?parseInt(n.textContent,10):0).reduce((x,y)=>x+y,0);updateBadge(t)}function updateBadge(e){e>=1?document.title=\"(\"+e+\") \"+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,3000);", + "js_unread": "function checkUnread(){var e=\"\",a=document.title.match(/^\\((\\d+)\\)/);try{e=a[1]}catch(e){}updateBadge(e?parseInt(e):0)}function updateBadge(e){1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", "userAgent": "", "note": "", "titleBlink": false,