Setting unlocked property to true when audio tags are ready

This commit is contained in:
Pavle Goloskokovic 2018-01-17 18:19:51 +01:00
parent 5f035c80e2
commit fb52e3d490

View file

@ -86,7 +86,7 @@ var HTML5AudioSoundManager = new Class({
var lastTag = allTags[allTags.length - 1];
lastTag.oncanplaythrough = function () {
lastTag.oncanplaythrough = null;
_this.touchUnlocked = true;
_this.unlocked = true;
};
allTags.forEach(function (tag) {
tag.load();