blob: d9749b0d16b8a5dfcdb48a385fa04deaaf4d1e73 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdi => {
const getMessages = () => {
const notifications = document.querySelectorAll('[class*=_3W-zkl4-bnVKzJ]');
Ferdi.setBadge(0, notifications.length >= 1 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|