blob: 785cb9adb0f7d6bbaecd745a434d18677dc4f90b (
plain) (
blame)
1
2
3
4
5
6
7
8
|
module.exports = Ferdium => {
const getMessages = () => {
const notificationBadge = document.querySelectorAll('.tab-red-dot').length;
Ferdium.setBadge(notificationBadge);
};
Ferdium.loop(getMessages);
};
|