From 983772a2fadfc65c22b10776d382c47b25594e8d Mon Sep 17 00:00:00 2001 From: samme Date: Sat, 3 Mar 2018 14:29:14 -0800 Subject: [PATCH] Warn if HTML5AudioSound#audio fails to play #3309 --- src/sound/html5/HTML5AudioSound.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index fd15614ad..137910b24 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -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); + }); } },