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