blob: b024ce19cd470d79d73aa4e5d80a18a6031fdb72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
module.exports = (Ferdi) => {
const getMessages = function 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);
};
|