Skipping unlocking logic if there are no locked tags

This commit is contained in:
Pavle Goloskokovic 2018-04-14 18:50:28 +02:00
parent fa07dc76e9
commit 2167654009

View file

@ -203,6 +203,11 @@ var HTML5AudioSoundManager = new Class({
return true;
});
if (lockedTags.length === 0)
{
return;
}
var lastTag = lockedTags[lockedTags.length - 1];
lastTag.oncanplaythrough = function ()