1 2 3 4 5 6 7 8 9 10 11
const path = require('path'); module.exports = (Franz, options) => { const getMessages = () => { const unreadMail = $("#zmlTree .zmTreeNDWra .zmBold").length; Franz.setBadge(unreadMail); } Franz.loop(getMessages); };