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