{"size": 611, "ext": "js", "max_stars_repo_path": "webview.js", "max_stars_repo_name": "agodlydeciple/franz-google-contacts", "max_stars_repo_stars_event_min_datetime": "2018-05-03T10:30:49.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-03T10:30:49.000Z", "max_issues_repo_path": "webview.js", "max_issues_repo_name": "agodlydeciple/franz-v5-plugin-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "webview.js", "max_forks_repo_name": "agodlydeciple/franz-v5-plugin-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.0952380952, "max_line_length": 139, "alphanum_fraction": 0.52700491}
// gpm integration
/*jshint esversion: 6 */
module.exports = (Franz) => {
    function getMessages() {
        try {
            let direct = 0;
            let indirect = 0;
            let FranzData = (document.querySelector("#FranzMessages") === null ? false : document.querySelector("#FranzMessages").dataset);
            if (FranzData !== false) {
                direct = FranzData.direct;
                indirect = FranzData.indirect;
            }

            Franz.setBadge(direct, indirect);
        } catch (error) {
            console.log(error);
        }
    }

    Franz.loop(getMessages);
};