aboutsummaryrefslogtreecommitdiff
path: root/web/client.html
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-02 09:46:56 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-02 09:46:56 +0200
commitd05c1f7d4590e3af6eb6ea25be75487a8a706ce0 (patch)
tree02d1f43a6cde7f2ce052e543d08de1466639b081 /web/client.html
parent63efa0a64cde9df075a137526da483ebce7a13e4 (diff)
downloadWRMS-d05c1f7d4590e3af6eb6ea25be75487a8a706ce0.tar.gz
WRMS-d05c1f7d4590e3af6eb6ea25be75487a8a706ce0.zip
do not change playback state when receiving a stop event
Receiving stop means WRMS ran out of songs regardless of its playing state.
Diffstat (limited to 'web/client.html')
-rw-r--r--web/client.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/web/client.html b/web/client.html
index a6052f2..c193a42 100644
--- a/web/client.html
+++ b/web/client.html
@@ -194,11 +194,7 @@
}
function handleStop() {
- // The stop event is only emmited if WRMS is Playing and runs out of songs.
- // Therefore, we can safely change the button label to Pause since WRMS is playing.
- // Seeing a stop event before a play event can occur when an admin calls /playpause
- // with an empty playlist.
- {{if .IsAdmin}} document.getElementById("ppbutton").innerHTML = 'Pause'; {{end}}
+ // The stop event is emmited if WRMS out of songs.
playing = document.getElementById("playing").innerHTML = "";
}