From 5f73074c7ee0cc37c4b01f7cdc17dd7fe56a840c Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 27 Apr 2022 22:31:33 +0200 Subject: [PATCH] fix audio playback on first visit --- copyparty/web/browser.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 36d471d4..ae1207f3 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1414,7 +1414,7 @@ var audio_eq = (function () { // 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) return console.log('no audio found wait what'); @@ -3372,8 +3372,6 @@ document.onkeydown = function (e) { vs = ebi('srch_' + k + 'v').value, tvs = []; - if (k == 'name') - console.log('a'); while (vs) { vs = vs.trim(); if (!vs) @@ -4029,7 +4027,6 @@ var treectl = (function () { r.ls_cb = null; fun(); } - eval_hash(); } r.gentab = function (top, res) { @@ -4094,6 +4091,7 @@ var treectl = (function () { apply_perms(res.perms); fileman.render(); } + setTimeout(eval_hash, 1); } var m = scan_hash(hash0),