{"size": 536, "ext": "js", "max_stars_repo_path": "color_changer/js/background.js", "max_stars_repo_name": "jmon83/MicrosoftEdge-Extensions-Demos", "max_stars_repo_stars_event_min_datetime": "2017-02-20T11:36:06.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-26T19:04:52.000Z", "max_issues_repo_path": "color_changer/js/background.js", "max_issues_repo_name": "jmon83/MicrosoftEdge-Extensions-Demos", "max_issues_repo_issues_event_min_datetime": "2017-02-15T16:15:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-03T06:04:49.000Z", "max_forks_repo_path": "color_changer/js/background.js", "max_forks_repo_name": "jmon83/MicrosoftEdge-Extensions-Demos", "max_forks_repo_forks_event_min_datetime": "2017-02-03T10:21:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-26T23:35:21.000Z"}
{"max_stars_count": 116, "max_issues_count": 21, "max_forks_count": 238, "avg_line_length": 38.2857142857, "max_line_length": 83, "alphanum_fraction": 0.6007462687}
// listen for sendMessage() from content script
browser.runtime.onMessage.addListener(
    function (request, sender, sendResponse) {
        // set the icon for the browser action from sendMessage() in content script
        browser.browserAction.setIcon({
            path: {
                "20": request.iconPath20,
                "40": request.iconPath40
            },
            tabId: sender.tab.id
        });
        // disable browser action for the current tab
        browser.browserAction.disable(sender.tab.id);
    });