aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/clubhouse/webview.js
blob: b16ab056982585c6f434313fb33cd6b366c7d7c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
module.exports = (Ferdi) => {
  function getMessages() {
    let unread = 0;
    const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible');
    if (hasNotifications) {
      Ferdi.setBadge(1);
    }
  }

  Ferdi.loop(getMessages);
}