Fixed bad call to init audio ctx when the login form is used. ref #194
This commit is contained in:
@@ -38,10 +38,6 @@ LMS.mediaplayer = function () {
|
||||
_initAudioCtx();
|
||||
};
|
||||
|
||||
document.addEventListener("touchstart", _unlock);
|
||||
document.addEventListener("touchend", _unlock);
|
||||
document.addEventListener("click", _unlock);
|
||||
|
||||
let _initAudioCtx = function() {
|
||||
if (_audioIsInit) {
|
||||
_audioCtx.resume(); // not sure of this
|
||||
@@ -321,6 +317,9 @@ LMS.mediaplayer = function () {
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
document.addEventListener("touchstart", _unlock);
|
||||
document.addEventListener("touchend", _unlock);
|
||||
document.addEventListener("click", _unlock);
|
||||
}
|
||||
|
||||
let _removeAudioSources = function() {
|
||||
|
||||
Reference in New Issue
Block a user