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