Skip to content

Fix worker instantiation inside service workers#183

Open
Gomorongi wants to merge 1 commit intoiden3:masterfrom
fatlabsxyz:fix/instantiationInServiceWorkers
Open

Fix worker instantiation inside service workers#183
Gomorongi wants to merge 1 commit intoiden3:masterfrom
fatlabsxyz:fix/instantiationInServiceWorkers

Conversation

@Gomorongi
Copy link

The method URL method "createObjectURL" does not exist in a Service Worker context, so calling "buildThreadManager" fails inside them. With this change we check for the method to exist before defaulting to use a data url.

We ran into this issue trying to use SnarkJS inside a Service Worker and with this it now works.

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