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