mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 20:07:08 +00:00
Skipping unlocking logic if there are no locked tags
This commit is contained in:
parent
fa07dc76e9
commit
2167654009
1 changed files with 5 additions and 0 deletions
|
@ -203,6 +203,11 @@ var HTML5AudioSoundManager = new Class({
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (lockedTags.length === 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var lastTag = lockedTags[lockedTags.length - 1];
|
var lastTag = lockedTags[lockedTags.length - 1];
|
||||||
|
|
||||||
lastTag.oncanplaythrough = function ()
|
lastTag.oncanplaythrough = function ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue