{"action":"created","comment":{"url":"https://api.github.com/repos/reactbkk/2.0.0/pulls/comments/117440450","pull_request_review_id":39149315,"id":117440450,"diff_hunk":"@@ -0,0 +1,27 @@\n+'use strict';\n+if ('serviceWorker' in navigator) {\n+  window.addEventListener('load', function() {","path":"static/service-worker-registration.js","position":3,"original_position":3,"commit_id":"5efa0fea407d45eded062607e9859233431c8650","original_commit_id":"5efa0fea407d45eded062607e9859233431c8650","user":{"login":"PanJ","id":1797879,"avatar_url":"https://avatars1.githubusercontent.com/u/1797879?v=3","gravatar_id":"","url":"https://api.github.com/users/PanJ","html_url":"https://github.com/PanJ","followers_url":"https://api.github.com/users/PanJ/followers","following_url":"https://api.github.com/users/PanJ/following{/other_user}","gists_url":"https://api.github.com/users/PanJ/gists{/gist_id}","starred_url":"https://api.github.com/users/PanJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanJ/subscriptions","organizations_url":"https://api.github.com/users/PanJ/orgs","repos_url":"https://api.github.com/users/PanJ/repos","events_url":"https://api.github.com/users/PanJ/events{/privacy}","received_events_url":"https://api.github.com/users/PanJ/received_events","type":"User","site_admin":false},"body":"@dtinth actually waiting for load event is better for installing service worker. see https://github.com/GoogleChrome/sw-precache/blob/master/demo/app/js/service-worker-registration.js","created_at":"2017-05-19T09:26:54Z","updated_at":"2017-05-19T09:26:54Z","html_url":"https://github.com/reactbkk/2.0.0/pull/80#discussion_r117440450","pull_request_url":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/reactbkk/2.0.0/pulls/comments/117440450"},"html":{"href":"https://github.com/reactbkk/2.0.0/pull/80#discussion_r117440450"},"pull_request":{"href":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80","id":121456843,"html_url":"https://github.com/reactbkk/2.0.0/pull/80","diff_url":"https://github.com/reactbkk/2.0.0/pull/80.diff","patch_url":"https://github.com/reactbkk/2.0.0/pull/80.patch","issue_url":"https://api.github.com/repos/reactbkk/2.0.0/issues/80","number":80,"state":"open","locked":false,"title":"Feature/offline","user":{"login":"plamworapot","id":4770354,"avatar_url":"https://avatars0.githubusercontent.com/u/4770354?v=3","gravatar_id":"","url":"https://api.github.com/users/plamworapot","html_url":"https://github.com/plamworapot","followers_url":"https://api.github.com/users/plamworapot/followers","following_url":"https://api.github.com/users/plamworapot/following{/other_user}","gists_url":"https://api.github.com/users/plamworapot/gists{/gist_id}","starred_url":"https://api.github.com/users/plamworapot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamworapot/subscriptions","organizations_url":"https://api.github.com/users/plamworapot/orgs","repos_url":"https://api.github.com/users/plamworapot/repos","events_url":"https://api.github.com/users/plamworapot/events{/privacy}","received_events_url":"https://api.github.com/users/plamworapot/received_events","type":"User","site_admin":false},"body":"- add sw-precache\r\n----\r\n- issues #21 ","created_at":"2017-05-19T09:12:47Z","updated_at":"2017-05-19T09:26:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80/commits","review_comments_url":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80/comments","review_comment_url":"https://api.github.com/repos/reactbkk/2.0.0/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reactbkk/2.0.0/issues/80/comments","statuses_url":"https://api.github.com/repos/reactbkk/2.0.0/statuses/5efa0fea407d45eded062607e9859233431c8650","head":{"label":"plamworapot:feature/offline","ref":"feature/offline","sha":"5efa0fea407d45eded062607e9859233431c8650","user":{"login":"plamworapot","id":4770354,"avatar_url":"https://avatars0.githubusercontent.com/u/4770354?v=3","gravatar_id":"","url":"https://api.github.com/users/plamworapot","html_url":"https://github.com/plamworapot","followers_url":"https://api.github.com/users/plamworapot/followers","following_url":"https://api.github.com/users/plamworapot/following{/other_user}","gists_url":"https://api.github.com/users/plamworapot/gists{/gist_id}","starred_url":"https://api.github.com/users/plamworapot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamworapot/subscriptions","organizations_url":"https://api.github.com/users/plamworapot/orgs","repos_url":"https://api.github.com/users/plamworapot/repos","events_url":"https://api.github.com/users/plamworapot/events{/privacy}","received_events_url":"https://api.github.com/users/plamworapot/received_events","type":"User","site_admin":false},"repo":{"id":91681770,"name":"2.0.0","full_name":"plamworapot/2.0.0","owner":{"login":"plamworapot","id":4770354,"avatar_url":"https://avatars0.githubusercontent.com/u/4770354?v=3","gravatar_id":"","url":"https://api.github.com/users/plamworapot","html_url":"https://github.com/plamworapot","followers_url":"https://api.github.com/users/plamworapot/followers","following_url":"https://api.github.com/users/plamworapot/following{/other_user}","gists_url":"https://api.github.com/users/plamworapot/gists{/gist_id}","starred_url":"https://api.github.com/users/plamworapot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamworapot/subscriptions","organizations_url":"https://api.github.com/users/plamworapot/orgs","repos_url":"https://api.github.com/users/plamworapot/repos","events_url":"https://api.github.com/users/plamworapot/events{/privacy}","received_events_url":"https://api.github.com/users/plamworapot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/plamworapot/2.0.0","description":"React Bangkok 2.0.0 website powered by Next 3 ^_^","fork":true,"url":"https://api.github.com/repos/plamworapot/2.0.0","forks_url":"https://api.github.com/repos/plamworapot/2.0.0/forks","keys_url":"https://api.github.com/repos/plamworapot/2.0.0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plamworapot/2.0.0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plamworapot/2.0.0/teams","hooks_url":"https://api.github.com/repos/plamworapot/2.0.0/hooks","issue_events_url":"https://api.github.com/repos/plamworapot/2.0.0/issues/events{/number}","events_url":"https://api.github.com/repos/plamworapot/2.0.0/events","assignees_url":"https://api.github.com/repos/plamworapot/2.0.0/assignees{/user}","branches_url":"https://api.github.com/repos/plamworapot/2.0.0/branches{/branch}","tags_url":"https://api.github.com/repos/plamworapot/2.0.0/tags","blobs_url":"https://api.github.com/repos/plamworapot/2.0.0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plamworapot/2.0.0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plamworapot/2.0.0/git/refs{/sha}","trees_url":"https://api.github.com/repos/plamworapot/2.0.0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plamworapot/2.0.0/statuses/{sha}","languages_url":"https://api.github.com/repos/plamworapot/2.0.0/languages","stargazers_url":"https://api.github.com/repos/plamworapot/2.0.0/stargazers","contributors_url":"https://api.github.com/repos/plamworapot/2.0.0/contributors","subscribers_url":"https://api.github.com/repos/plamworapot/2.0.0/subscribers","subscription_url":"https://api.github.com/repos/plamworapot/2.0.0/subscription","commits_url":"https://api.github.com/repos/plamworapot/2.0.0/commits{/sha}","git_commits_url":"https://api.github.com/repos/plamworapot/2.0.0/git/commits{/sha}","comments_url":"https://api.github.com/repos/plamworapot/2.0.0/comments{/number}","issue_comment_url":"https://api.github.com/repos/plamworapot/2.0.0/issues/comments{/number}","contents_url":"https://api.github.com/repos/plamworapot/2.0.0/contents/{+path}","compare_url":"https://api.github.com/repos/plamworapot/2.0.0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plamworapot/2.0.0/merges","archive_url":"https://api.github.com/repos/plamworapot/2.0.0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plamworapot/2.0.0/downloads","issues_url":"https://api.github.com/repos/plamworapot/2.0.0/issues{/number}","pulls_url":"https://api.github.com/repos/plamworapot/2.0.0/pulls{/number}","milestones_url":"https://api.github.com/repos/plamworapot/2.0.0/milestones{/number}","notifications_url":"https://api.github.com/repos/plamworapot/2.0.0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plamworapot/2.0.0/labels{/name}","releases_url":"https://api.github.com/repos/plamworapot/2.0.0/releases{/id}","deployments_url":"https://api.github.com/repos/plamworapot/2.0.0/deployments","created_at":"2017-05-18T10:42:27Z","updated_at":"2017-05-18T10:42:28Z","pushed_at":"2017-05-19T08:55:24Z","git_url":"git://github.com/plamworapot/2.0.0.git","ssh_url":"git@github.com:plamworapot/2.0.0.git","clone_url":"https://github.com/plamworapot/2.0.0.git","svn_url":"https://github.com/plamworapot/2.0.0","homepage":"","size":1147,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"reactbkk:master","ref":"master","sha":"cc96dd0239efc0f0b0ccfcff23f912b50bf703e2","user":{"login":"reactbkk","id":21272936,"avatar_url":"https://avatars0.githubusercontent.com/u/21272936?v=3","gravatar_id":"","url":"https://api.github.com/users/reactbkk","html_url":"https://github.com/reactbkk","followers_url":"https://api.github.com/users/reactbkk/followers","following_url":"https://api.github.com/users/reactbkk/following{/other_user}","gists_url":"https://api.github.com/users/reactbkk/gists{/gist_id}","starred_url":"https://api.github.com/users/reactbkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactbkk/subscriptions","organizations_url":"https://api.github.com/users/reactbkk/orgs","repos_url":"https://api.github.com/users/reactbkk/repos","events_url":"https://api.github.com/users/reactbkk/events{/privacy}","received_events_url":"https://api.github.com/users/reactbkk/received_events","type":"Organization","site_admin":false},"repo":{"id":91482961,"name":"2.0.0","full_name":"reactbkk/2.0.0","owner":{"login":"reactbkk","id":21272936,"avatar_url":"https://avatars0.githubusercontent.com/u/21272936?v=3","gravatar_id":"","url":"https://api.github.com/users/reactbkk","html_url":"https://github.com/reactbkk","followers_url":"https://api.github.com/users/reactbkk/followers","following_url":"https://api.github.com/users/reactbkk/following{/other_user}","gists_url":"https://api.github.com/users/reactbkk/gists{/gist_id}","starred_url":"https://api.github.com/users/reactbkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactbkk/subscriptions","organizations_url":"https://api.github.com/users/reactbkk/orgs","repos_url":"https://api.github.com/users/reactbkk/repos","events_url":"https://api.github.com/users/reactbkk/events{/privacy}","received_events_url":"https://api.github.com/users/reactbkk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reactbkk/2.0.0","description":"React Bangkok 2.0.0 website powered by Next 3 ^_^","fork":false,"url":"https://api.github.com/repos/reactbkk/2.0.0","forks_url":"https://api.github.com/repos/reactbkk/2.0.0/forks","keys_url":"https://api.github.com/repos/reactbkk/2.0.0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactbkk/2.0.0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactbkk/2.0.0/teams","hooks_url":"https://api.github.com/repos/reactbkk/2.0.0/hooks","issue_events_url":"https://api.github.com/repos/reactbkk/2.0.0/issues/events{/number}","events_url":"https://api.github.com/repos/reactbkk/2.0.0/events","assignees_url":"https://api.github.com/repos/reactbkk/2.0.0/assignees{/user}","branches_url":"https://api.github.com/repos/reactbkk/2.0.0/branches{/branch}","tags_url":"https://api.github.com/repos/reactbkk/2.0.0/tags","blobs_url":"https://api.github.com/repos/reactbkk/2.0.0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactbkk/2.0.0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactbkk/2.0.0/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactbkk/2.0.0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactbkk/2.0.0/statuses/{sha}","languages_url":"https://api.github.com/repos/reactbkk/2.0.0/languages","stargazers_url":"https://api.github.com/repos/reactbkk/2.0.0/stargazers","contributors_url":"https://api.github.com/repos/reactbkk/2.0.0/contributors","subscribers_url":"https://api.github.com/repos/reactbkk/2.0.0/subscribers","subscription_url":"https://api.github.com/repos/reactbkk/2.0.0/subscription","commits_url":"https://api.github.com/repos/reactbkk/2.0.0/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactbkk/2.0.0/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactbkk/2.0.0/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactbkk/2.0.0/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactbkk/2.0.0/contents/{+path}","compare_url":"https://api.github.com/repos/reactbkk/2.0.0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactbkk/2.0.0/merges","archive_url":"https://api.github.com/repos/reactbkk/2.0.0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactbkk/2.0.0/downloads","issues_url":"https://api.github.com/repos/reactbkk/2.0.0/issues{/number}","pulls_url":"https://api.github.com/repos/reactbkk/2.0.0/pulls{/number}","milestones_url":"https://api.github.com/repos/reactbkk/2.0.0/milestones{/number}","notifications_url":"https://api.github.com/repos/reactbkk/2.0.0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactbkk/2.0.0/labels{/name}","releases_url":"https://api.github.com/repos/reactbkk/2.0.0/releases{/id}","deployments_url":"https://api.github.com/repos/reactbkk/2.0.0/deployments","created_at":"2017-05-16T16:57:25Z","updated_at":"2017-05-19T09:10:37Z","pushed_at":"2017-05-19T09:16:57Z","git_url":"git://github.com/reactbkk/2.0.0.git","ssh_url":"git@github.com:reactbkk/2.0.0.git","clone_url":"https://github.com/reactbkk/2.0.0.git","svn_url":"https://github.com/reactbkk/2.0.0","homepage":"https://reactbkk.github.io/2.0.0/","size":2034,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":48,"mirror_url":null,"open_issues_count":20,"forks":48,"open_issues":20,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80"},"html":{"href":"https://github.com/reactbkk/2.0.0/pull/80"},"issue":{"href":"https://api.github.com/repos/reactbkk/2.0.0/issues/80"},"comments":{"href":"https://api.github.com/repos/reactbkk/2.0.0/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/reactbkk/2.0.0/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reactbkk/2.0.0/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/reactbkk/2.0.0/statuses/5efa0fea407d45eded062607e9859233431c8650"}}}}
{"actor":{"display_login":"PanJ"}}