blob: 86cab4372362c2e608748988d0b2d1b43d03e1dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module.exports = Ferdium => {
const notificationsSelector = document.querySelector(
'[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]',
);
const getMessages = () => {
if (notificationsSelector) {
Ferdium.setBadge(notificationsSelector.textContent);
}
};
Ferdium.loop(getMessages);
};
|