blob: 1ddb5fd9ff62d4f38aa3b1181865e75ba5c312f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = (Ferdium) => {
const getMessages = () => {
const hasNotifications = document.querySelector(".counterBadge");
Ferdium.setBadge(0, hasNotifications ? 1 : 0);
};
Ferdium.loop(getMessages);
};
|