{"size": 370, "ext": "js", "max_stars_repo_path": "src/js/eventPage.js", "max_stars_repo_name": "msx47/youtube_ocr_extension", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/eventPage.js", "max_issues_repo_name": "msx47/youtube_ocr_extension", "max_issues_repo_issues_event_min_datetime": "2022-03-08T09:50:05.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T09:50:05.000Z", "max_forks_repo_path": "src/js/eventPage.js", "max_forks_repo_name": "msx47/youtube_ocr_extension", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 26.4285714286, "max_line_length": 92, "alphanum_fraction": 0.6756756757}
/* eslint-disable no-undef */
// Event page activates the extension on the allowed hosts which is youtube.com in this case
chrome.runtime.onMessage.addListener(function (request) {

  if (request.todo == "showPageAction") {

    chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {

      chrome.pageAction.show(tabs[0].id);
      
    });
  }
});
