-
Notifications
You must be signed in to change notification settings - Fork 58
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
OffscreenCanvas when in worker contexts #35
Comments
Alternatively you could just extend the Lines 13 to 17 in 88d5b01
|
Ah, that's much better than the hack I had in mind, thanks for the tip! |
@MatthewSteel you're welcome! This will only work on the |
Added as a part of ff5cef8 |
Had to remove it again because apparently |
It seems Chrome added willReadFrequently support back in R99? |
Hi! I'm trying to use
tiny-sdf
in a web-worker, anddocument.createElement("canvas")
isn't working becausedocument
isn't found on the global object.I'm happy to make a PR that does something like
or that reversed, or using some different kind of logical test. Looks like your eslint config doesn't love
OffscreenCanvas
, so I might need some help convincing it too.Not super urgent, I think I can hack around this until it's fixed here.
The text was updated successfully, but these errors were encountered: