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