Skip to content

Commit

Permalink
Update projects/packages/videopress/src/client/block-editor/blocks/vi…
Browse files Browse the repository at this point in the history
…deo/components/player/index.native.js

Co-authored-by: Carlos Garcia <fluiddot@gmail.com>
  • Loading branch information
jhnstn and fluiddot authored Apr 20, 2023
1 parent 5d3d8b1 commit c7c0e59
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export default function Player( { isSelected, attributes } ) {
}

if ( isPreviewReady( preview ) || previewCheckAttempts > VIDEO_PREVIEW_ATTEMPTS_LIMIT ) {
return clearTimeout( previewCheckTimer.current );
clearTimeout( previewCheckTimer.current );
return;
}

previewCheckTimer.current = setTimeout( () => {
Expand Down

0 comments on commit c7c0e59

Please sign in to comment.