removed length check on imageDataUrl
This commit is contained in:
parent
41b5a05a55
commit
fff96d9288
1 changed files with 0 additions and 5 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue