mdn / webaudio-examples

Code examples that accompany the MDN Web Docs pages relating to Web Audio.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
Creative Commons Zero v1.0 Universal
1.25k stars 433 forks source link

fix: correct error variable name #121

Closed carlpratt closed 9 months ago

carlpratt commented 9 months ago

Description

When decoding fails, the error log crashes the app due to mis-named error variable.

Motivation

Allows the actual error to be logged instead of crashing the app.

Additional details

N/A

Related issues and pull requests

N/A

github-actions[bot] commented 9 months ago

It looks like this is your first pull request. 🎉 Thank you for your contribution! One of the project maintainers will triage and assign the pull request for review. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

teoli2003 commented 9 months ago

Thanks a lot!

This PR looks good to me.

Congratulations upon your first merged commit here! Welcome aboard! ✌️

github-actions[bot] commented 9 months ago

Congratulations on your first merged pull request. 🎉 Thank you for your contribution! Did you know we have a project board with high-impact contribution opportunities? We look forward to your next contribution.