blob: e359de9db0e8535cb05bf2593be411fca4ceb102 (
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 > 0 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|