Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Update Hangouts js_unread.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGoddessInari committed Nov 19, 2021
1 parent 297f0f0 commit 3de8091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/ServicesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3de8091

Please sign in to comment.