blob: c8bdd5166ec5067fe5194f7bfa6628bb40cc3691 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdi => {
const getMessages = () => {
const count = document.querySelectorAll('.unseen-msg-count').length;
Ferdi.setBadge(count);
};
Ferdi.loop(getMessages);
};
|