Skip to content

Commit

Permalink
fix: canvas fallback dimensions (#24473)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Aug 20, 2024
1 parent 3020152 commit cbc42a3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export const CanvasReplayerPlugin = (events: eventWithTime[]): ReplayPlugin => {
}

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

await canvasMutation({
Expand Down

0 comments on commit cbc42a3

Please sign in to comment.