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