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