blob: 6908949fddf146ed00b603d0ff7055a589a22120 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdium => {
const getMessages = () => {
const notifications = document.querySelectorAll('.notification--number');
Ferdium.setBadge(0, notifications.length > 0 ? 1 : 0);
};
Ferdium.loop(getMessages);
};
|