Skip to content

Commit

Permalink
Fix currentFrame being null
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jul 30, 2021
1 parent 5f92186 commit d625f16
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ function createScreencastClient() {
} );
}

if ( ! this.currentFrame ) {
return;
}

this.ctx.clearRect( 0, 0, this.canvas.width, this.canvas.height );
this.ctx.drawImage( this.currentFrame, 0, 0 );
}
Expand Down

0 comments on commit d625f16

Please sign in to comment.