blob: 55ece2833e01e0b5f3ab9a7287bed8c535ca3015 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdium => {
const getMessages = () => {
const unread = document.querySelector('.cu-notification-alert__dot');
Ferdium.setBadge(unread ? 1 : 0);
};
Ferdium.loop(getMessages);
};
|