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

Wombat rewriting causes web workers to fail #5

Open
mpbrucker opened this issue Jul 20, 2020 · 1 comment
Open

Wombat rewriting causes web workers to fail #5

mpbrucker opened this issue Jul 20, 2020 · 1 comment

Comments

@mpbrucker
Copy link
Collaborator

As seen in ec2b7ce:

Because the module code is run within an iframe where Wombat is active, attempts to create a new Worker() using module code will fail because Wombat will rewrite the file location, thinking it's referencing a collection-specific archive resource as opposed to a static file.

@mpbrucker
Copy link
Collaborator Author

One workaround I've found for this is to convert the worker function into a Blob, and generate a URL for it--that way, Wombat won't rewrite the URL in the same way. The implementation can be seen in #8.

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

No branches or pull requests

1 participant