Skip to content

Commit

Permalink
Merge pull request #79 from ale-cci/fix/issue_74
Browse files Browse the repository at this point in the history
Init tempCanvasElement to null
  • Loading branch information
werthdavid authored Feb 6, 2022
2 parents 13d99c7 + 099b7f5 commit 31e4082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/HTMLCanvasElementLuminanceSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class HTMLCanvasElementLuminanceSource extends LuminanceSource {

private buffer: Uint8ClampedArray;

private tempCanvasElement?: HTMLCanvasElement;
private tempCanvasElement?: HTMLCanvasElement = null;

public constructor(private canvas: HTMLCanvasElement) {
super(canvas.width, canvas.height);
Expand Down

0 comments on commit 31e4082

Please sign in to comment.