From 8b37f8c7d424f023731afdc6f8c695eb8a689169 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Thu, 7 May 2026 19:23:17 +0200 Subject: [PATCH] always update song end time for alternate progress bar --- copyparty/web/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 56254b1d..7f2e2feb 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2744,6 +2744,7 @@ var pbar = (function () { if (w && html_txt != t2) { ebi('txtpos').innerHTML = ebi('np_pos').textContent = html_txt = t2; + ebi('txtsongend').innerHTML = t1; if (mpl.os_ctl) navigator.mediaSession.setPositionState({ 'duration': adur, @@ -2752,7 +2753,7 @@ var pbar = (function () { }); } - if (!widget.is_open) + if (!widget.is_open || !r.waves) return; pctx.fillStyle = '#bbb'; pctx.fillRect((x - w / 2) - 1, 0, w + 2, pc.h);