Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Use version of load() with option handling for window.loadAudio#22

Open
ben-denham wants to merge 1 commit intoaudiojs:masterfrom
ben-denham:master
Open

Use version of load() with option handling for window.loadAudio#22
ben-denham wants to merge 1 commit intoaudiojs:masterfrom
ben-denham:master

Conversation

@ben-denham
Copy link
Copy Markdown

I ran into the following error when attempting to use window.loadAudio() from a browser environment: Uncaught TypeError: options.fetch is not a function.

This seems to be because the window.loadAudio() function is load() in loads.js, which doesn't handle options like the function exported from browser.js.

This pull request resolves the issue by assigning the function exported from browser.js to window.loadAudio() instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant