From aff8a41a0bc037e1aee1dc11bb248235940788da Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Thu, 13 Sep 2018 09:19:34 -0700 Subject: [PATCH] Hangouts: Fix 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 7311664f..f2b746cb 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -77,7 +77,7 @@ Ext.define('Rambox.store.ServicesList', { ,type: 'messaging' ,titleBlink: true ,manual_notifications: true - ,js_unread: `let checkUnread=()=>{rambox.updateBadge(document.getElementById("hangout-landing-chat").lastChild.contentWindow.document.body.getElementsByClassName("ee").length)};setInterval(checkUnread,3e3);` + ,js_unread: `let checkUnread=()=>{let myframe=document.getElementById("hangout-landing-chat").lastChild,mydocument=myframe.contentDocument||myframe.contentWindow.document;rambox.updateBadge(mydocument.body.getElementsByClassName("ee").length)};setInterval(checkUnread,3e3);` }, { id: 'hipchat'