Fixed bad call to init audio ctx when the login form is used. ref #194

This commit is contained in:
emeric
2022-09-10 14:05:33 +02:00
parent 576c56f5f5
commit 5f2bd7ebde
+3 -4
View File
@@ -38,10 +38,6 @@ LMS.mediaplayer = function () {
_initAudioCtx(); _initAudioCtx();
}; };
document.addEventListener("touchstart", _unlock);
document.addEventListener("touchend", _unlock);
document.addEventListener("click", _unlock);
let _initAudioCtx = function() { let _initAudioCtx = function() {
if (_audioIsInit) { if (_audioIsInit) {
_audioCtx.resume(); // not sure of this _audioCtx.resume(); // not sure of this
@@ -321,6 +317,9 @@ LMS.mediaplayer = function () {
event.preventDefault(); event.preventDefault();
}); });
document.addEventListener("touchstart", _unlock);
document.addEventListener("touchend", _unlock);
document.addEventListener("click", _unlock);
} }
let _removeAudioSources = function() { let _removeAudioSources = function() {