blob: 286046aff9282380f6972be7c9d99c0fe808d03e (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdi => {
const getMessages = () => {
const unread = document.querySelectorAll('.header__bell-wrapper_unread');
Ferdi.setBadge(unread.length > 0 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|