Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init tempCanvasElement to null #79

Merged
merged 1 commit into from
Feb 6, 2022
Merged

Conversation

ale-cci
Copy link

@ale-cci ale-cci commented Jan 10, 2022

Related to this issue #74, it seems that this.tempCanvasElement is not initialized, resulting in an undefined value.

When it's compared to null in getTempCanvasElement, it's not initialized for the first time and rotate() returns the error: Could not create a Canvas element.

@werthdavid werthdavid merged commit 31e4082 into zxing-js:master Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants