{"size": 270, "ext": "js", "max_stars_repo_path": "features/pwa/index.js", "max_stars_repo_name": "wangchunling/wangchunling.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "features/pwa/index.js", "max_issues_repo_name": "wangchunling/wangchunling.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "features/pwa/index.js", "max_forks_repo_name": "wangchunling/wangchunling.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.5, "max_line_length": 87, "alphanum_fraction": 0.6962962963}
window.addEventListener('DOMContentLoaded', function() {
  // 执行注册
  navigator.serviceWorker.register('/features/pwa/sw.js').then(function(registration) {
    console.log(registration)
    console.log('service worker registed!');

  }).catch(function(err) {

  });
});

