Skip to content

Support offscreencanvas when possible#355

Open
LukeWood wants to merge 1 commit intoprotectwise:mainfrom
LukeWood:updates
Open

Support offscreencanvas when possible#355
LukeWood wants to merge 1 commit intoprotectwise:mainfrom
LukeWood:updates

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.

1 participant