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