always update song end time for alternate progress bar

This commit is contained in:
Til Schmitter 2026-05-07 19:23:17 +02:00
parent 03ec82ac92
commit 8b37f8c7d4

View file

@ -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);