Skip to content

Fix importScripts errors#54

Open
michael-harvey wants to merge 1 commit intomuleyo:masterfrom
michael-harvey:fix-importscripts-issue
Open

Fix importScripts errors#54
michael-harvey wants to merge 1 commit intomuleyo:masterfrom
michael-harvey:fix-importscripts-issue

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