From 3de80916ec00fbc00ebf26d6cdcfa02f38aaa61a Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Fri, 19 Nov 2021 04:48:32 -0800 Subject: [PATCH] Update Hangouts js_unread. --- 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 2a615f5d..1720340c 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -76,7 +76,7 @@ Ext.define('Hamsket.store.ServicesList', { ,type: 'messaging' ,titleBlink: true ,manual_notifications: true - ,js_unread: `let checkUnread=()=>{let myframe=document.getElementById("hangout-landing-chat").lastChild,mydocument=myframe.contentDocument||myframe.contentWindow.document;hamsket.updateBadge(mydocument.body.getElementsByClassName("ee").length)};setInterval(checkUnread,3e3);` + ,js_unread: `const checkUnread=()=>{const myframe=document.querySelector("#hangout-landing-chat iframe"),mydocument=myframe&&"contentDocument"in myframe?myframe.contentDocument:myframe.contentWindow.document,count=mydocument?mydocument.body.querySelectorAll(".ee").length:0;hamsket.updateBadge(count)};setInterval(checkUnread,3e3);` }, { id: 'hipchat'