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

Support offscreencanvas when possible #355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LukeWood
Copy link

I didn't put it behind a feature flag, but I did it only when WorkerGlobalScope is defined which is only the case in WebWorkers: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope

Maybe we should unit test this, but I think this looks fine. My own implementation was typescript so I had to port it a bit. Its possible I made a mistake in translation, so give it a solid look.

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.

None yet

1 participant