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