blob: 9fbb613cc6259810bc42340049b8047b704a4e83 (
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 >= 1 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|