mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
ESLint fix for playCatchPromise method
This commit is contained in:
parent
1e08945173
commit
a08dc5ef64
1 changed files with 2 additions and 2 deletions
|
@ -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) { });
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue