blob: f951ad1de71b1ed372d79f7542d1b2ca5d627556 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
module.exports = Ferdium => {
const getMessages = () => {
const getNotificationButton = document.querySelector(
'#notifications_button',
);
let hasNotification = getNotificationButton.classList.contains('pp-active');
Ferdium.setBadge(0, hasNotification ? 1 : 0);
};
Ferdium.loop(getMessages);
};
|