{"action":"created","comment":{"url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/comments/40518335","id":40518335,"diff_hunk":"@@ -5,91 +5,55 @@ var path = require('path');\n var fs = require('fs');\n var CSPRemover = require('./utils/CSPRemover');\n var url = require('url');\n+var multiPlatforms = require('./utils/multi-platforms');","path":"lib/runHook.js","position":4,"original_position":4,"commit_id":"1799f895422aa1117c2401873eea475db889e00b","original_commit_id":"1799f895422aa1117c2401873eea475db889e00b","user":{"login":"nikhilkh","id":2417321,"avatar_url":"https://avatars.githubusercontent.com/u/2417321?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhilkh","html_url":"https://github.com/nikhilkh","followers_url":"https://api.github.com/users/nikhilkh/followers","following_url":"https://api.github.com/users/nikhilkh/following{/other_user}","gists_url":"https://api.github.com/users/nikhilkh/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilkh/subscriptions","organizations_url":"https://api.github.com/users/nikhilkh/orgs","repos_url":"https://api.github.com/users/nikhilkh/repos","events_url":"https://api.github.com/users/nikhilkh/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilkh/received_events","type":"User","site_admin":false},"body":"Nit: `multi-platforms` is an odd name consider naming it just `platforms`","created_at":"2015-09-28T04:51:48Z","updated_at":"2015-09-28T04:51:48Z","html_url":"https://github.com/omefire/cordova-plugin-livereload/pull/12#discussion_r40518335","pull_request_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/comments/40518335"},"html":{"href":"https://github.com/omefire/cordova-plugin-livereload/pull/12#discussion_r40518335"},"pull_request":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12","id":46073972,"html_url":"https://github.com/omefire/cordova-plugin-livereload/pull/12","diff_url":"https://github.com/omefire/cordova-plugin-livereload/pull/12.diff","patch_url":"https://github.com/omefire/cordova-plugin-livereload/pull/12.patch","issue_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/12","number":12,"state":"open","locked":false,"title":"Multiple platforms support: `cordova run android ios -- --livereload`","user":{"login":"omefire","id":4992035,"avatar_url":"https://avatars.githubusercontent.com/u/4992035?v=3","gravatar_id":"","url":"https://api.github.com/users/omefire","html_url":"https://github.com/omefire","followers_url":"https://api.github.com/users/omefire/followers","following_url":"https://api.github.com/users/omefire/following{/other_user}","gists_url":"https://api.github.com/users/omefire/gists{/gist_id}","starred_url":"https://api.github.com/users/omefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omefire/subscriptions","organizations_url":"https://api.github.com/users/omefire/orgs","repos_url":"https://api.github.com/users/omefire/repos","events_url":"https://api.github.com/users/omefire/events{/privacy}","received_events_url":"https://api.github.com/users/omefire/received_events","type":"User","site_admin":false},"body":"1- Allow users to use LiveReload with multiple platforms and therefore be able to sync gestures across multiple emulators/devices.\r\n      e.g: `cordova run android ios -- --livereload`\r\n\r\n2- Various refactorings to make the code cleaner.","created_at":"2015-09-26T02:57:24Z","updated_at":"2015-09-28T04:51:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12/commits","review_comments_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12/comments","review_comment_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/12/comments","statuses_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/statuses/1799f895422aa1117c2401873eea475db889e00b","head":{"label":"omefire:MultiplePlatformsSupport","ref":"MultiplePlatformsSupport","sha":"1799f895422aa1117c2401873eea475db889e00b","user":{"login":"omefire","id":4992035,"avatar_url":"https://avatars.githubusercontent.com/u/4992035?v=3","gravatar_id":"","url":"https://api.github.com/users/omefire","html_url":"https://github.com/omefire","followers_url":"https://api.github.com/users/omefire/followers","following_url":"https://api.github.com/users/omefire/following{/other_user}","gists_url":"https://api.github.com/users/omefire/gists{/gist_id}","starred_url":"https://api.github.com/users/omefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omefire/subscriptions","organizations_url":"https://api.github.com/users/omefire/orgs","repos_url":"https://api.github.com/users/omefire/repos","events_url":"https://api.github.com/users/omefire/events{/privacy}","received_events_url":"https://api.github.com/users/omefire/received_events","type":"User","site_admin":false},"repo":{"id":41187987,"name":"cordova-plugin-livereload","full_name":"omefire/cordova-plugin-livereload","owner":{"login":"omefire","id":4992035,"avatar_url":"https://avatars.githubusercontent.com/u/4992035?v=3","gravatar_id":"","url":"https://api.github.com/users/omefire","html_url":"https://github.com/omefire","followers_url":"https://api.github.com/users/omefire/followers","following_url":"https://api.github.com/users/omefire/following{/other_user}","gists_url":"https://api.github.com/users/omefire/gists{/gist_id}","starred_url":"https://api.github.com/users/omefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omefire/subscriptions","organizations_url":"https://api.github.com/users/omefire/orgs","repos_url":"https://api.github.com/users/omefire/repos","events_url":"https://api.github.com/users/omefire/events{/privacy}","received_events_url":"https://api.github.com/users/omefire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/omefire/cordova-plugin-livereload","description":"LiveReload Plugin for Cordova","fork":false,"url":"https://api.github.com/repos/omefire/cordova-plugin-livereload","forks_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/forks","keys_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/teams","hooks_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/hooks","issue_events_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/events{/number}","events_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/events","assignees_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/assignees{/user}","branches_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/branches{/branch}","tags_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/tags","blobs_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/refs{/sha}","trees_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/statuses/{sha}","languages_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/languages","stargazers_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/stargazers","contributors_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/contributors","subscribers_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/subscribers","subscription_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/subscription","commits_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/commits{/sha}","git_commits_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/commits{/sha}","comments_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/comments{/number}","issue_comment_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/comments{/number}","contents_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/contents/{+path}","compare_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/merges","archive_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/downloads","issues_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues{/number}","pulls_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls{/number}","milestones_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/milestones{/number}","notifications_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/labels{/name}","releases_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/releases{/id}","created_at":"2015-08-22T03:16:46Z","updated_at":"2015-08-24T18:09:33Z","pushed_at":"2015-09-26T02:57:24Z","git_url":"git://github.com/omefire/cordova-plugin-livereload.git","ssh_url":"git@github.com:omefire/cordova-plugin-livereload.git","clone_url":"https://github.com/omefire/cordova-plugin-livereload.git","svn_url":"https://github.com/omefire/cordova-plugin-livereload","homepage":null,"size":508,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"omefire:master","ref":"master","sha":"29d621d4e65d5cc62067831dced5ced8f65d00d6","user":{"login":"omefire","id":4992035,"avatar_url":"https://avatars.githubusercontent.com/u/4992035?v=3","gravatar_id":"","url":"https://api.github.com/users/omefire","html_url":"https://github.com/omefire","followers_url":"https://api.github.com/users/omefire/followers","following_url":"https://api.github.com/users/omefire/following{/other_user}","gists_url":"https://api.github.com/users/omefire/gists{/gist_id}","starred_url":"https://api.github.com/users/omefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omefire/subscriptions","organizations_url":"https://api.github.com/users/omefire/orgs","repos_url":"https://api.github.com/users/omefire/repos","events_url":"https://api.github.com/users/omefire/events{/privacy}","received_events_url":"https://api.github.com/users/omefire/received_events","type":"User","site_admin":false},"repo":{"id":41187987,"name":"cordova-plugin-livereload","full_name":"omefire/cordova-plugin-livereload","owner":{"login":"omefire","id":4992035,"avatar_url":"https://avatars.githubusercontent.com/u/4992035?v=3","gravatar_id":"","url":"https://api.github.com/users/omefire","html_url":"https://github.com/omefire","followers_url":"https://api.github.com/users/omefire/followers","following_url":"https://api.github.com/users/omefire/following{/other_user}","gists_url":"https://api.github.com/users/omefire/gists{/gist_id}","starred_url":"https://api.github.com/users/omefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omefire/subscriptions","organizations_url":"https://api.github.com/users/omefire/orgs","repos_url":"https://api.github.com/users/omefire/repos","events_url":"https://api.github.com/users/omefire/events{/privacy}","received_events_url":"https://api.github.com/users/omefire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/omefire/cordova-plugin-livereload","description":"LiveReload Plugin for Cordova","fork":false,"url":"https://api.github.com/repos/omefire/cordova-plugin-livereload","forks_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/forks","keys_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/teams","hooks_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/hooks","issue_events_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/events{/number}","events_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/events","assignees_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/assignees{/user}","branches_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/branches{/branch}","tags_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/tags","blobs_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/refs{/sha}","trees_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/statuses/{sha}","languages_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/languages","stargazers_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/stargazers","contributors_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/contributors","subscribers_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/subscribers","subscription_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/subscription","commits_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/commits{/sha}","git_commits_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/git/commits{/sha}","comments_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/comments{/number}","issue_comment_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/comments{/number}","contents_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/contents/{+path}","compare_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/merges","archive_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/downloads","issues_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues{/number}","pulls_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls{/number}","milestones_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/milestones{/number}","notifications_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/labels{/name}","releases_url":"https://api.github.com/repos/omefire/cordova-plugin-livereload/releases{/id}","created_at":"2015-08-22T03:16:46Z","updated_at":"2015-08-24T18:09:33Z","pushed_at":"2015-09-26T02:57:24Z","git_url":"git://github.com/omefire/cordova-plugin-livereload.git","ssh_url":"git@github.com:omefire/cordova-plugin-livereload.git","clone_url":"https://github.com/omefire/cordova-plugin-livereload.git","svn_url":"https://github.com/omefire/cordova-plugin-livereload","homepage":null,"size":508,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12"},"html":{"href":"https://github.com/omefire/cordova-plugin-livereload/pull/12"},"issue":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/12"},"comments":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/omefire/cordova-plugin-livereload/statuses/1799f895422aa1117c2401873eea475db889e00b"}}}}