blob: 1d81e9932a050bb7bc8acda119b371112cdefc29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
module.exports = (Franz, options) => {
const getMessages = () => {
const unreadPrivateMessages = parseInt($('.messages .unread-meeps').text());
const unreadGroupMessages = parseInt($('.today .unread-meeps').text());
Franz.setBadge(unreadPrivateMessages + unreadGroupMessages);
};
Franz.loop(getMessages);
};
|