Skip to content

Fix error in canDrawBitmap if OffscreenCanvas exists but is not supported#258

Merged
catdad merged 2 commits intocatdad:masterfrom
Gavin-Hofer:gavin/fix-offscreen-canvas-error
Oct 25, 2025
Merged

Fix error in canDrawBitmap if OffscreenCanvas exists but is not supported#258
catdad merged 2 commits intocatdad:masterfrom
Gavin-Hofer:gavin/fix-offscreen-canvas-error

Conversation

@Gavin-Hofer
Copy link
Contributor

I saw this error where a user had a browser version where OffscreenCanvas was defined, but attempting to construct it throws a NotSupportedError. This PR just expands the try block in canDrawBitmap to handle this edge case.

@catdad
Copy link
Owner

catdad commented Oct 25, 2025

Makes sense, thanks for contributing!

@catdad catdad merged commit 0566ad2 into catdad:master Oct 25, 2025
1 check passed
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