From fff96d92888dbc4b270c58ff49f3ab5ad544be85 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 1 Mar 2018 10:18:17 -0800 Subject: [PATCH] removed length check on imageDataUrl --- react/containers/PublishThumbnailInput/view.jsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/react/containers/PublishThumbnailInput/view.jsx b/react/containers/PublishThumbnailInput/view.jsx index 1a6f1e66..ba34b8c4 100644 --- a/react/containers/PublishThumbnailInput/view.jsx +++ b/react/containers/PublishThumbnailInput/view.jsx @@ -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 () {