blob: 7fa586758d0a61f8b0476873a87ffcf1dd00c4a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module.exports = (Ferdi) => {
const getMessages = () => {
const notificationBadge = document.querySelector(
".siteHeader__topLevelItem--profileIcon .headerPersonalNav .modalTrigger .headerPersonalNav__icon .headerPersonalNav__flag"
);
let notification = notificationBadge
? Number.parseInt(notificationBadge.textContent)
: 0;
Ferdi.setBadge(notification);
};
Ferdi.loop(getMessages);
};
|