blob: 9af36c34b1b7f7a3170c76b54e9eac1d24dcd0b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
module.exports = Ferdi => {
const getMessages = () => {
const directMessages = document.querySelectorAll('.activity-indicator-mentions').length;
const indirectMessages = document.querySelectorAll('.activity-indicator-chat').length;
// set Ferdi badge
Ferdi.setBadge(directMessages, indirectMessages);
};
Ferdi.loop(getMessages);
};
|