blob: 6bfff0272a5e4f3ac5a9c08e939f27f075dfd986 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = (Ferdium) => {
const getMessages = () => {
const notifications = document.querySelectorAll("circle");
Ferdium.setBadge(0, notifications.length > 0 ? 1 : 0);
};
Ferdium.loop(getMessages);
};
|