CB-11227 browser: Fix incorrect mime type

This closes #211
This commit is contained in:
Keith M 2016-05-07 19:51:58 -04:00 committed by Nikhil Khandelwal
parent 57b177f3fb
commit af98d57417

View File

@ -69,7 +69,7 @@ function capture(success, errorCallback) {
canvas.getContext('2d').drawImage(video, 0, 0, 320, 240);
// convert image stored in canvas to base64 encoded image
var imageData = canvas.toDataURL('img/png');
var imageData = canvas.toDataURL('image/png');
imageData = imageData.replace('data:image/png;base64,', '');
// stop video stream, remove video and button.