wle8300 / uifx

Audio library designed for UI sound effects
https://wle8300.github.io/uifx-demo
MIT License
112 stars 11 forks source link

Fix - Chrome autoplay policy #13

Closed hstevanoski closed 4 years ago

hstevanoski commented 4 years ago

Added a little bit of code in the play() function to comply with the Chrome autoplay policy. Now errors don't pop out in the console whenever the autoplay is prevented.

Referring to the issue I opened - it is now fixed.

wle8300 commented 4 years ago

Thx for the PR! I've made the changes and published this patch to npm (https://www.npmjs.com/package/uifx)