removed length check on imageDataUrl

This commit is contained in:
bill bittner 2018-03-01 10:18:17 -08:00
parent 41b5a05a55
commit fff96d9288

View file

@ -65,11 +65,6 @@ class PublishThumbnailInput extends React.Component {
canvas.height = video.videoHeight;
canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height);
const imageDataUrl = canvas.toDataURL();
const success = imageDataUrl.length > 1000;
if (!success) {
this.setState({error: 'error taking snapshot'});
return false;
}
return imageDataUrl;
}
render () {