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