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

fix: add mimetype when create blob #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

everywill
Copy link

No description provided.

@reklawnos
Copy link
Owner

@everywill What's the particular issue this solves? This currently copies the behavior of worker-loader, which does not specify a mimetype when creating the blob.

@everywill
Copy link
Author

When try worklet-loader with options: { inline:true}, chrome doesn't accept the generated blob as worklet. It seems that
only explicitly assigned with the mime-type, the blob can be executed as worklet.

@lawrence-witt
Copy link

I'd like to second this. I get DOMException: The user aborted a request when trying to run inline Audio Worklets in Chromium browsers without specifying the mimetype.

It makes sense that this would deviate from Web Workers since Audio Worklets are only supposed to be run in a secure context, however AFAIK only Chrome is currently implementing that part of the spec.

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.

3 participants