blob: a044399cc3a69f23b0a7e4a6c4e83084a9156eb9 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdi => {
const getMessages = function getMessages() {
const element = document.querySelector("#app button[data-test-id='notificationsCount']");
Ferdi.setBadge(element ? Ferdi.safeParseInt(element.innerText) : 0);
};
Ferdi.loop(getMessages);
};
|