1 2 3 4 5 6 7
module.exports = (Ferdi) => { const getMessages = () => { Ferdi.setBadge($('.unread').length); }; Ferdi.loop(getMessages); };