Skip to content

Commit

Permalink
fix: prevent canvas error (#23009)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Jun 17, 2024
1 parent 567be75 commit cbc7e88
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ export const CanvasReplayerPlugin = (events: eventWithTime[]): ReplayPlugin => {
return
}

target.width = source.clientWidth
target.height = source.clientHeight
if (source) {
target.width = source.clientWidth
target.height = source.clientHeight
}

await canvasMutation({
event: e,
Expand Down

0 comments on commit cbc7e88

Please sign in to comment.