blob: bf926e496966a3494541d44f6e95f175df961df0 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdi => {
const getMessages = () => {
const notifications = document.querySelectorAll('.notification--number');
Ferdi.setBadge(0, notifications.length > 0 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|