{"size": 288, "ext": "js", "max_stars_repo_path": "resources/js/token.js", "max_stars_repo_name": "glassShard/lvhang", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/token.js", "max_issues_repo_name": "glassShard/lvhang", "max_issues_repo_issues_event_min_datetime": "2021-02-02T19:26:49.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T10:39:45.000Z", "max_forks_repo_path": "resources/js/token.js", "max_forks_repo_name": "glassShard/lvhang", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 9, "max_forks_count": null, "avg_line_length": 24.0, "max_line_length": 55, "alphanum_fraction": 0.6458333333}
export function setToken() {
  const element = document.querySelector('#token');
  let token = '';
  if (element) {
    token = document.querySelector('#token').innerHTML;
  }
  if (token) {
    localStorage.setItem('token', token);
    return;
  } 
  localStorage.removeItem('token'); 
}