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