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 importScripts errors #54

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

Conversation

michael-harvey
Copy link

@michael-harvey michael-harvey commented Jun 10, 2022

Running into a SyntaxError: WorkerGlobalScope.importScripts: Failed to load worker script at "type "" where the getWasmWorkerUrl method is returning type ", an invalid url.

It seems like twitchBlobUrl itself is returning the correct url for the wasmworker script anyway, i.e. https://www.twitch.tv/assets/amazon-ivs-wasmworker.min-5526a9c4389a99792948.js, so it seems as though the method getWasmWorkerUrl isn't needed anymore?

Simply returning the twitchBlobUrl resolves the issues for firefox/chrome.

Feel free to close if this change is inappropriate.

Cheers for the extension! 🍻

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