{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/comments/68145445","id":68145445,"diff_hunk":"@@ -5,9 +5,14 @@ module.exports = function (messages) {\n         Camera: {\n             takePicture: function (success, fail, args) {\n                 messages.call('takePicture', args).then(function (result) {\n-                    // 'result' should be {data: <ArrayBuffer>, type: <mimeType>}, from which we'll create a blob\n-                    var blob = new Blob([result.data], {type: result.type});\n-                    success(URL.createObjectURL(blob));\n+                    if (args && args[1] === 0) {","path":"src/plugins/cordova-plugin-camera/app-host-handlers.js","position":7,"original_position":7,"commit_id":"d631f858fb376bcdfa907fa23173698e695a39f4","original_commit_id":"d631f858fb376bcdfa907fa23173698e695a39f4","user":{"login":"guillaumejenkins","id":14299377,"avatar_url":"https://avatars.githubusercontent.com/u/14299377?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaumejenkins","html_url":"https://github.com/guillaumejenkins","followers_url":"https://api.github.com/users/guillaumejenkins/followers","following_url":"https://api.github.com/users/guillaumejenkins/following{/other_user}","gists_url":"https://api.github.com/users/guillaumejenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumejenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumejenkins/subscriptions","organizations_url":"https://api.github.com/users/guillaumejenkins/orgs","repos_url":"https://api.github.com/users/guillaumejenkins/repos","events_url":"https://api.github.com/users/guillaumejenkins/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumejenkins/received_events","type":"User","site_admin":false},"body":"Great!","created_at":"2016-06-22T22:14:45Z","updated_at":"2016-06-22T22:14:45Z","html_url":"https://github.com/Microsoft/cordova-simulate/pull/91#discussion_r68145445","pull_request_url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/comments/68145445"},"html":{"href":"https://github.com/Microsoft/cordova-simulate/pull/91#discussion_r68145445"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91","id":74676288,"html_url":"https://github.com/Microsoft/cordova-simulate/pull/91","diff_url":"https://github.com/Microsoft/cordova-simulate/pull/91.diff","patch_url":"https://github.com/Microsoft/cordova-simulate/pull/91.patch","issue_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/91","number":91,"state":"open","locked":false,"title":"Camera support for DATA_URL destination type.","user":{"login":"dlebu","id":12283206,"avatar_url":"https://avatars.githubusercontent.com/u/12283206?v=3","gravatar_id":"","url":"https://api.github.com/users/dlebu","html_url":"https://github.com/dlebu","followers_url":"https://api.github.com/users/dlebu/followers","following_url":"https://api.github.com/users/dlebu/following{/other_user}","gists_url":"https://api.github.com/users/dlebu/gists{/gist_id}","starred_url":"https://api.github.com/users/dlebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlebu/subscriptions","organizations_url":"https://api.github.com/users/dlebu/orgs","repos_url":"https://api.github.com/users/dlebu/repos","events_url":"https://api.github.com/users/dlebu/events{/privacy}","received_events_url":"https://api.github.com/users/dlebu/received_events","type":"User","site_admin":false},"body":"Fixes #34 ","created_at":"2016-06-21T20:06:09Z","updated_at":"2016-06-22T22:14:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43905c293d5bd7b94200d7dfc0afb5ca5eeb436a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91/commits","review_comments_url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91/comments","review_comment_url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/91/comments","statuses_url":"https://api.github.com/repos/Microsoft/cordova-simulate/statuses/d631f858fb376bcdfa907fa23173698e695a39f4","head":{"label":"Microsoft:camera-data-url","ref":"camera-data-url","sha":"d631f858fb376bcdfa907fa23173698e695a39f4","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":43615334,"name":"cordova-simulate","full_name":"Microsoft/cordova-simulate","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/cordova-simulate","description":"Simulates your Apache Cordova application in the browser.","fork":false,"url":"https://api.github.com/repos/Microsoft/cordova-simulate","forks_url":"https://api.github.com/repos/Microsoft/cordova-simulate/forks","keys_url":"https://api.github.com/repos/Microsoft/cordova-simulate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/cordova-simulate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/cordova-simulate/teams","hooks_url":"https://api.github.com/repos/Microsoft/cordova-simulate/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/cordova-simulate/events","assignees_url":"https://api.github.com/repos/Microsoft/cordova-simulate/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/cordova-simulate/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/cordova-simulate/tags","blobs_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/cordova-simulate/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/cordova-simulate/languages","stargazers_url":"https://api.github.com/repos/Microsoft/cordova-simulate/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/cordova-simulate/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/cordova-simulate/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/cordova-simulate/subscription","commits_url":"https://api.github.com/repos/Microsoft/cordova-simulate/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/cordova-simulate/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/cordova-simulate/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/cordova-simulate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/cordova-simulate/merges","archive_url":"https://api.github.com/repos/Microsoft/cordova-simulate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/cordova-simulate/downloads","issues_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/cordova-simulate/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/cordova-simulate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/cordova-simulate/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/cordova-simulate/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/cordova-simulate/deployments","created_at":"2015-10-03T21:17:05Z","updated_at":"2016-06-22T13:33:46Z","pushed_at":"2016-06-22T21:26:31Z","git_url":"git://github.com/Microsoft/cordova-simulate.git","ssh_url":"git@github.com:Microsoft/cordova-simulate.git","clone_url":"https://github.com/Microsoft/cordova-simulate.git","svn_url":"https://github.com/Microsoft/cordova-simulate","homepage":"","size":703,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":22,"forks":13,"open_issues":22,"watchers":40,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"ba30820c5df5c949389bda3528321f167d14eca5","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":43615334,"name":"cordova-simulate","full_name":"Microsoft/cordova-simulate","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/cordova-simulate","description":"Simulates your Apache Cordova application in the browser.","fork":false,"url":"https://api.github.com/repos/Microsoft/cordova-simulate","forks_url":"https://api.github.com/repos/Microsoft/cordova-simulate/forks","keys_url":"https://api.github.com/repos/Microsoft/cordova-simulate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/cordova-simulate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/cordova-simulate/teams","hooks_url":"https://api.github.com/repos/Microsoft/cordova-simulate/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/cordova-simulate/events","assignees_url":"https://api.github.com/repos/Microsoft/cordova-simulate/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/cordova-simulate/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/cordova-simulate/tags","blobs_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/cordova-simulate/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/cordova-simulate/languages","stargazers_url":"https://api.github.com/repos/Microsoft/cordova-simulate/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/cordova-simulate/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/cordova-simulate/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/cordova-simulate/subscription","commits_url":"https://api.github.com/repos/Microsoft/cordova-simulate/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/cordova-simulate/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/cordova-simulate/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/cordova-simulate/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/cordova-simulate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/cordova-simulate/merges","archive_url":"https://api.github.com/repos/Microsoft/cordova-simulate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/cordova-simulate/downloads","issues_url":"https://api.github.com/repos/Microsoft/cordova-simulate/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/cordova-simulate/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/cordova-simulate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/cordova-simulate/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/cordova-simulate/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/cordova-simulate/deployments","created_at":"2015-10-03T21:17:05Z","updated_at":"2016-06-22T13:33:46Z","pushed_at":"2016-06-22T21:26:31Z","git_url":"git://github.com/Microsoft/cordova-simulate.git","ssh_url":"git@github.com:Microsoft/cordova-simulate.git","clone_url":"https://github.com/Microsoft/cordova-simulate.git","svn_url":"https://github.com/Microsoft/cordova-simulate","homepage":"","size":703,"stargazers_count":40,"watchers_count":40,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":22,"forks":13,"open_issues":22,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91"},"html":{"href":"https://github.com/Microsoft/cordova-simulate/pull/91"},"issue":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/91"},"comments":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/cordova-simulate/statuses/d631f858fb376bcdfa907fa23173698e695a39f4"}}}}
{"actor":{"display_login":"guillaumejenkins"}}