blob: c1742660315a6be1615c68ae516e2a39ba27f748 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
module.exports = (Ferdi) => {
const getMessages = () => {
// check notification badge for Ferdi badge
let hasNotification = !!document.querySelector('#app div.notifications > button > i.circle');
Ferdi.setBadge(0, hasNotification ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|