{"action":"created","comment":{"url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/comments/26691398","id":26691398,"diff_hunk":"@@ -58,6 +61,15 @@ define(function (require, exports, module) {\n     function send(idOrArray, msgStr){\n         var win = _iframeRef.contentWindow;\n \n+        // Parse msgStr and check to see if it's a reload command.\n+        // If so, trigger launcher.launch and return\n+        var msg = JSON.parse(msgStr);\n+\n+        if(msg.method === \"Page.reload\" || msg.method === \"Page.navigate\") {","path":"lib/PostMessageTransport.js","position":23,"original_position":23,"commit_id":"4d246c7b4f3893c1a889f295e1665c1d006b6d0b","original_commit_id":"4d246c7b4f3893c1a889f295e1665c1d006b6d0b","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"body":"Playing with this patch locally, I'm finding it odd to have the reload happen when I navigate to another file in the editor.  When I go to a CSS file, suddenly it loads the CSS file into the preview, which is probably not what we want.","created_at":"2015-03-18T18:18:02Z","updated_at":"2015-03-18T18:18:02Z","html_url":"https://github.com/humphd/brackets-browser-livedev/pull/28#discussion_r26691398","pull_request_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/comments/26691398"},"html":{"href":"https://github.com/humphd/brackets-browser-livedev/pull/28#discussion_r26691398"},"pull_request":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28","id":30586186,"html_url":"https://github.com/humphd/brackets-browser-livedev/pull/28","diff_url":"https://github.com/humphd/brackets-browser-livedev/pull/28.diff","patch_url":"https://github.com/humphd/brackets-browser-livedev/pull/28.patch","issue_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues/28","number":28,"state":"open","locked":false,"title":"fixes #69 - reload live preview iFrame, enable multi-file support","user":{"login":"K-LV","id":9330361,"avatar_url":"https://avatars.githubusercontent.com/u/9330361?v=3","gravatar_id":"","url":"https://api.github.com/users/K-LV","html_url":"https://github.com/K-LV","followers_url":"https://api.github.com/users/K-LV/followers","following_url":"https://api.github.com/users/K-LV/following{/other_user}","gists_url":"https://api.github.com/users/K-LV/gists{/gist_id}","starred_url":"https://api.github.com/users/K-LV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K-LV/subscriptions","organizations_url":"https://api.github.com/users/K-LV/orgs","repos_url":"https://api.github.com/users/K-LV/repos","events_url":"https://api.github.com/users/K-LV/events{/privacy}","received_events_url":"https://api.github.com/users/K-LV/received_events","type":"User","site_admin":false},"body":"PostMessageTransport catches reload event and launches the live document","created_at":"2015-03-05T19:13:49Z","updated_at":"2015-03-18T18:18:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"facc21ac64dff02ba58cf513ff3960563ba67a81","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28/commits","review_comments_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28/comments","review_comment_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues/28/comments","statuses_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/statuses/4d246c7b4f3893c1a889f295e1665c1d006b6d0b","head":{"label":"K-LV:patchReload","ref":"patchReload","sha":"4d246c7b4f3893c1a889f295e1665c1d006b6d0b","user":{"login":"K-LV","id":9330361,"avatar_url":"https://avatars.githubusercontent.com/u/9330361?v=3","gravatar_id":"","url":"https://api.github.com/users/K-LV","html_url":"https://github.com/K-LV","followers_url":"https://api.github.com/users/K-LV/followers","following_url":"https://api.github.com/users/K-LV/following{/other_user}","gists_url":"https://api.github.com/users/K-LV/gists{/gist_id}","starred_url":"https://api.github.com/users/K-LV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K-LV/subscriptions","organizations_url":"https://api.github.com/users/K-LV/orgs","repos_url":"https://api.github.com/users/K-LV/repos","events_url":"https://api.github.com/users/K-LV/events{/privacy}","received_events_url":"https://api.github.com/users/K-LV/received_events","type":"User","site_admin":false},"repo":{"id":30605365,"name":"brackets-browser-livedev","full_name":"K-LV/brackets-browser-livedev","owner":{"login":"K-LV","id":9330361,"avatar_url":"https://avatars.githubusercontent.com/u/9330361?v=3","gravatar_id":"","url":"https://api.github.com/users/K-LV","html_url":"https://github.com/K-LV","followers_url":"https://api.github.com/users/K-LV/followers","following_url":"https://api.github.com/users/K-LV/following{/other_user}","gists_url":"https://api.github.com/users/K-LV/gists{/gist_id}","starred_url":"https://api.github.com/users/K-LV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K-LV/subscriptions","organizations_url":"https://api.github.com/users/K-LV/orgs","repos_url":"https://api.github.com/users/K-LV/repos","events_url":"https://api.github.com/users/K-LV/events{/privacy}","received_events_url":"https://api.github.com/users/K-LV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/K-LV/brackets-browser-livedev","description":"In-Browser Live Development Extension for Brackets","fork":true,"url":"https://api.github.com/repos/K-LV/brackets-browser-livedev","forks_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/forks","keys_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/teams","hooks_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/hooks","issue_events_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/issues/events{/number}","events_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/events","assignees_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/assignees{/user}","branches_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/branches{/branch}","tags_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/tags","blobs_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/git/refs{/sha}","trees_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/statuses/{sha}","languages_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/languages","stargazers_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/stargazers","contributors_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/contributors","subscribers_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/subscribers","subscription_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/subscription","commits_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/commits{/sha}","git_commits_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/git/commits{/sha}","comments_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/comments{/number}","issue_comment_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/issues/comments{/number}","contents_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/contents/{+path}","compare_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/merges","archive_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/downloads","issues_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/issues{/number}","pulls_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/pulls{/number}","milestones_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/milestones{/number}","notifications_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/labels{/name}","releases_url":"https://api.github.com/repos/K-LV/brackets-browser-livedev/releases{/id}","created_at":"2015-02-10T17:48:33Z","updated_at":"2015-03-12T20:33:17Z","pushed_at":"2015-03-18T16:53:14Z","git_url":"git://github.com/K-LV/brackets-browser-livedev.git","ssh_url":"git@github.com:K-LV/brackets-browser-livedev.git","clone_url":"https://github.com/K-LV/brackets-browser-livedev.git","svn_url":"https://github.com/K-LV/brackets-browser-livedev","homepage":null,"size":277,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"humphd:master","ref":"master","sha":"ab36c584ee70cc2a80966224cc6d6571cbaa65bb","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"repo":{"id":30307501,"name":"brackets-browser-livedev","full_name":"humphd/brackets-browser-livedev","owner":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/humphd/brackets-browser-livedev","description":"In-Browser Live Development Extension for Brackets","fork":false,"url":"https://api.github.com/repos/humphd/brackets-browser-livedev","forks_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/forks","keys_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/teams","hooks_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/hooks","issue_events_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues/events{/number}","events_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/events","assignees_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/assignees{/user}","branches_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/branches{/branch}","tags_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/tags","blobs_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/git/refs{/sha}","trees_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/statuses/{sha}","languages_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/languages","stargazers_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/stargazers","contributors_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/contributors","subscribers_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/subscribers","subscription_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/subscription","commits_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/commits{/sha}","git_commits_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/git/commits{/sha}","comments_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/comments{/number}","issue_comment_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues/comments{/number}","contents_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/contents/{+path}","compare_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/merges","archive_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/downloads","issues_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues{/number}","pulls_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls{/number}","milestones_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/milestones{/number}","notifications_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/labels{/name}","releases_url":"https://api.github.com/repos/humphd/brackets-browser-livedev/releases{/id}","created_at":"2015-02-04T16:07:00Z","updated_at":"2015-03-12T20:55:50Z","pushed_at":"2015-03-12T20:55:49Z","git_url":"git://github.com/humphd/brackets-browser-livedev.git","ssh_url":"git@github.com:humphd/brackets-browser-livedev.git","clone_url":"https://github.com/humphd/brackets-browser-livedev.git","svn_url":"https://github.com/humphd/brackets-browser-livedev","homepage":null,"size":678,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28"},"html":{"href":"https://github.com/humphd/brackets-browser-livedev/pull/28"},"issue":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues/28"},"comments":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/humphd/brackets-browser-livedev/statuses/4d246c7b4f3893c1a889f295e1665c1d006b6d0b"}}}}