aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader/webview.js
blob: 2de8e1c30f1b6617927158173a77215889304b18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
const path = require('path');

module.exports = (Franz, options) => {
  const getMessages = () => {
    const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML);

    Franz.setBadge(unreadNotifications);
  };

  Franz.loop(getMessages);

  Franz.injectCSS(path.join(__dirname, 'css', 'franz.css'));
};