ESLint fix for playCatchPromise method

This commit is contained in:
Pavle Goloskokovic 2018-02-18 21:21:42 +01:00
parent 1e08945173
commit a08dc5ef64

View file

@ -338,10 +338,10 @@ var HTML5AudioSound = new Class({
playCatchPromise: function ()
{
var playPromise = this.audio.play();
if (playPromise)
{
playPromise.catch(function () { });
// eslint-disable-next-line no-unused-vars
playPromise.catch(function (reason) { });
}
},