Skip to content

Commit

Permalink
fix: Uncaught TypeError: Illegal invocation when recording incrementa…
Browse files Browse the repository at this point in the history
…l canvas mutation (rrweb-io#844)
  • Loading branch information
YunFeng0817 authored Feb 24, 2022
1 parent f74b7bb commit 5ae208b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rrweb-snapshot/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export function is2DCanvasBlank(canvas: HTMLCanvasElement): boolean {
// even if we can already tell from the first chunk(s) that
// the canvas isn't blank
const pixelBuffer = new Uint32Array(
originalGetImageData(
originalGetImageData.call(
ctx,
x,
y,
Math.min(chunkSize, canvas.width - x),
Expand Down

0 comments on commit 5ae208b

Please sign in to comment.