Skip to content

Commit

Permalink
apacheGH-420 browser: Fixing a check style
Browse files Browse the repository at this point in the history
  • Loading branch information
hazems committed Mar 8, 2019
1 parent f2e2dad commit a20fb8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/browser/CameraProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ function takePicture (success, error, opts) {
var reader = new FileReader(); /* eslint no-undef : 0 */
reader.onload = function (readerEvent) {
input.parentNode.removeChild(input);

var imageData = readerEvent.target.result;

return success(imageData); //success(imageData.substr(imageData.indexOf(',') + 1));
return success(imageData);
};

reader.readAsDataURL(inputEvent.target.files[0]);
Expand Down

0 comments on commit a20fb8f

Please sign in to comment.