Skip to content

Commit

Permalink
Warn if HTML5AudioSound#audio fails to play
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed Mar 3, 2018
1 parent 95d8557 commit 983772a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sound/html5/HTML5AudioSound.js
Expand Up @@ -341,7 +341,10 @@ var HTML5AudioSound = new Class({
if (playPromise)
{
// eslint-disable-next-line no-unused-vars
playPromise.catch(function (reason) { });
playPromise.catch(function (reason)
{
console.warn(reason);
});
}
},

Expand Down

0 comments on commit 983772a

Please sign in to comment.