Browse Source

Update WhatsApp unreadCounter

pull/2912/head
Vulich Fernando 4 years ago committed by GitHub
parent
commit
a88d7237cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      api/services.json

2
api/services.json

@ -1463,7 +1463,7 @@
"type": "messaging", "type": "messaging",
"allow_popups": false, "allow_popups": false,
"manual_notifications": false, "manual_notifications": false,
"js_unread": "function checkUnread(){const e=document.querySelectorAll(\"#pane-side ._31gEB, .unread\");let t=0;for(let n=0;n<e.length;n++)0===e[n].parentNode.parentNode.querySelectorAll('#pane-side *[data-icon=\"muted\"]').length&&t++;updateBadge(t)}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3),(async()=>{try{const e=await window.navigator.serviceWorker.getRegistrations();for(const t of e)t.unregister()}catch(e){}})();var titleEl=document.querySelector(\".landing-title.version-title\");titleEl&&titleEl.innerHTML.includes(\"Google Chrome 60+\")&&window.location.reload(),document.body.scrollTop=0;", "js_unread": "function checkUnread(){const e=document.querySelectorAll(\"#pane-side ._2Q3SY, .unread\");let t=0;for(let n=0;n<e.length;n++)0===e[n].parentNode.parentNode.querySelectorAll('#pane-side *[data-icon=\"muted\"]').length&&t++;updateBadge(t)}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3),(async()=>{try{const e=await window.navigator.serviceWorker.getRegistrations();for(const t of e)t.unregister()}catch(e){}})();var titleEl=document.querySelector(\".landing-title.version-title\");titleEl&&titleEl.innerHTML.includes(\"Google Chrome 60+\")&&window.location.reload(),document.body.scrollTop=0;",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"note": "", "note": "",
"titleBlink": false, "titleBlink": false,

Loading…
Cancel
Save