fix audio playback on first visit

This commit is contained in:
ed 2022-04-27 22:31:33 +02:00
parent f5d6ba27b2
commit 5f73074c7e

View file

@ -1414,7 +1414,7 @@ var audio_eq = (function () {
// plays the tid'th audio file on the page // plays the tid'th audio file on the page
function play(tid, is_ev, seek, call_depth) { function play(tid, is_ev, seek) {
if (mp.order.length == 0) if (mp.order.length == 0)
return console.log('no audio found wait what'); return console.log('no audio found wait what');
@ -3372,8 +3372,6 @@ document.onkeydown = function (e) {
vs = ebi('srch_' + k + 'v').value, vs = ebi('srch_' + k + 'v').value,
tvs = []; tvs = [];
if (k == 'name')
console.log('a');
while (vs) { while (vs) {
vs = vs.trim(); vs = vs.trim();
if (!vs) if (!vs)
@ -4029,7 +4027,6 @@ var treectl = (function () {
r.ls_cb = null; r.ls_cb = null;
fun(); fun();
} }
eval_hash();
} }
r.gentab = function (top, res) { r.gentab = function (top, res) {
@ -4094,6 +4091,7 @@ var treectl = (function () {
apply_perms(res.perms); apply_perms(res.perms);
fileman.render(); fileman.render();
} }
setTimeout(eval_hash, 1);
} }
var m = scan_hash(hash0), var m = scan_hash(hash0),