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