blob: 697efa6bc7de99bf710940becaea7d0aa011377a (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = (Ferdi) => {
const getMessages = () => {
const mentions = document.querySelectorAll('.chat-line .mentioned').length;
Ferdi.setBadge(mentions, 0);
};
Ferdi.loop(getMessages);
};
|