Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Bypass WhatsApp minimum requirement
Browse files Browse the repository at this point in the history
Fixes #1989
Fixes #1987
Fixes #1986
Fixes #1985
Fixes #1981
Fixes #1980
  • Loading branch information
saenzramiro committed Dec 4, 2018
1 parent bd6137b commit 92a9a93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/store/ServicesList.js
Expand Up @@ -29,6 +29,7 @@ Ext.define('Rambox.store.ServicesList', {
,url: 'https://web.whatsapp.com/'
,type: 'messaging'
,js_unread: 'function checkUnread(){const elements = document.querySelectorAll(\'.CxUIE, .unread\');let count = 0;for (let i = 0; i < elements.length; i++) {if (elements[i].querySelectorAll(\'*[data-icon="muted"]\').length === 0) {count++;}}updateBadge(count);}function updateBadge(count){if(count && count>=1){rambox.setUnreadCount(count);}else{rambox.clearUnreadCount();}}setInterval(checkUnread, 1e3);'
,userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36'
},
{
id: 'slack'
Expand Down

1 comment on commit 92a9a93

@saenzramiro
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to not fix the issue. The warning of WhatsApp is un-stable because sometimes it not showing.

Please sign in to comment.