1 2 3 4 5 6 7 8 9 10 11
"use strict"; module.exports = Franz => { const getMessages = function getMessages() { var unread = 0 const notificationBadge = document.getElementsByClassName('tab-red-dot').length; Franz.setBadge(unread); }; Franz.loop(getMessages); };