blob: a6b2232383dc052dc534e77619760f66b80effba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
module.exports = (Ferdium) => {
const getMessages = () => {
const all_articles = document.querySelector('#unread_cnt_all_items');
if (!all_articles) return;
const unread_articles_cnt = Number(all_articles.textContent.split('+')[0]);
Ferdium.setBadge(unread_articles_cnt);
};
Ferdium.loop(getMessages);
};
|