aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader/webview.js
blob: 303a938003f2aada4a48db356de2068e54e0611d (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'));
};