blob: 25126e702d5132011472934e0d3b16d62fdb4089 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdi => {
const getMessages = () => {
const unreadMessageCountElement = document.querySelector('#notifications-anchor .badge');
const unreadMessagesCount = Ferdi.safeParseInt(unreadMessageCountElement.textContent);
Ferdi.setBadge(unreadMessagesCount, 0);
};
Ferdi.loop(getMessages);
};
|