blob: 4d8b00661fbafb32d5efe1a33af7b9d9c849f7e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
module.exports = Ferdi => {
const getMessages = () => {
const count = document.querySelector('.ws-tree-node-badge');
const countText = count ? count.textContent : null;
Ferdi.setBadge(count && countText ? Number(countText.substring(1, countText.length - 1)) : 0);
};
Ferdi.loop(getMessages);
};
|