aboutsummaryrefslogtreecommitdiffstats
path: root/clockify/webview.js
blob: 5aab471ce3e273f4129f91e559378779fcdf6881 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

module.exports = Franz => {
  const getMessages = function getMessages() {
    const notifications = document.querySelectorAll('.notification--number');

    Franz.setBadge(0, notifications.length >= 1 ? 1 : 0);
  };

  Franz.loop(getMessages);
};