blob: fbac1112608f4f33cf9530f81c902a5a6c5dfa15 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
module.exports = Ferdi => {
const getMessages = function getMessages() {
let unread = 0;
const notificationBadge = document.getElementsByClassName('notification-badge')[0];
if (notificationBadge != undefined) {
unread = notificationBadge.innerText;
}
Ferdi.setBadge(unread);
};
Ferdi.loop(getMessages);
};
|