blob: 5d45d5542b2ffd9632bfb055c14f8f64fab6a600 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = (Ferdi) => {
const getMessages = () => {
const hasNotifications = document.querySelector(".counterBadge");
Ferdi.setBadge(0, hasNotifications ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|