aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoho/webview.js
blob: 2f6f58c52de1e3b3fb002a35cc92ec1d46ca520b (plain) (blame)
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);
};