blob: 01b215b0ab875a9a068aad81faf63570fdc9a838 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = (Ferdi) => {
const getMessages = () => {
const notifications = document.querySelectorAll("circle");
Ferdi.setBadge(0, notifications.length > 0 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|