mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +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 ()
|
playCatchPromise: function ()
|
||||||
{
|
{
|
||||||
var playPromise = this.audio.play();
|
var playPromise = this.audio.play();
|
||||||
|
|
||||||
if (playPromise)
|
if (playPromise)
|
||||||
{
|
{
|
||||||
playPromise.catch(function () { });
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
playPromise.catch(function (reason) { });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue