aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/clubhouse/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/clubhouse/webview.js')
-rw-r--r--recipes/clubhouse/webview.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes/clubhouse/webview.js b/recipes/clubhouse/webview.js
index 9b2b782..be02ac0 100644
--- a/recipes/clubhouse/webview.js
+++ b/recipes/clubhouse/webview.js
@@ -1,9 +1,7 @@
1module.exports = (Ferdi) => { 1module.exports = (Ferdi) => {
2 function getMessages() { 2 function getMessages() {
3 const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible'); 3 const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible');
4 if (hasNotifications) { 4 Ferdi.setBadge(0, hasNotifications ? 1 : 0);
5 Ferdi.setBadge(0, 1);
6 }
7 } 5 }
8 6
9 Ferdi.loop(getMessages); 7 Ferdi.loop(getMessages);