{"size": 278, "ext": "js", "max_stars_repo_path": "app/assets/javascripts/shortcuts_dashboard_navigation.js", "max_stars_repo_name": "osluf/gitlab-ce-test", "max_stars_repo_stars_event_min_datetime": "2015-07-30T16:13:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-15T23:47:44.000Z", "max_issues_repo_path": "app/assets/javascripts/shortcuts_dashboard_navigation.js", "max_issues_repo_name": "osluf/gitlab-ce-test", "max_issues_repo_issues_event_min_datetime": "2019-12-20T05:57:28.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-27T16:07:53.000Z", "max_forks_repo_path": "app/assets/javascripts/shortcuts_dashboard_navigation.js", "max_forks_repo_name": "osluf/gitlab-ce-test", "max_forks_repo_forks_event_min_datetime": "2016-04-10T07:25:46.000Z", "max_forks_repo_forks_event_max_datetime": "2019-07-05T07:47:01.000Z"}
{"max_stars_count": 30, "max_issues_count": 15, "max_forks_count": 26, "avg_line_length": 21.3846153846, "max_line_length": 86, "alphanum_fraction": 0.6726618705}
/**
 * Helper function that finds the href of the fiven selector and updates the location.
 *
 * @param  {String} selector
 */
export default (selector) => {
  const link = document.querySelector(selector).getAttribute('href');

  if (link) {
    window.location = link;
  }
};
