Skip to content

Commit a08dc5e

Browse files
ESLint fix for playCatchPromise method
1 parent 1e08945 commit a08dc5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ var HTML5AudioSound = new Class({
338338
playCatchPromise: function ()
339339
{
340340
var playPromise = this.audio.play();
341-
342341
if (playPromise)
343342
{
344-
playPromise.catch(function () { });
343+
// eslint-disable-next-line no-unused-vars
344+
playPromise.catch(function (reason) { });
345345
}
346346
},
347347

0 commit comments

Comments
 (0)