aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-02 08:58:28 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-02 08:58:28 +0200
commit63efa0a64cde9df075a137526da483ebce7a13e4 (patch)
treeea33548587adedaa3f098670be6aaf824bf4983f /web
parent098390401c30ccd206f45d828b50046080906e85 (diff)
downloadWRMS-63efa0a64cde9df075a137526da483ebce7a13e4.tar.gz
WRMS-63efa0a64cde9df075a137526da483ebce7a13e4.zip
remove vote info when song is played
This fixes a bug where songs added a second time have bugged vote controls.
Diffstat (limited to 'web')
-rw-r--r--web/client.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/client.html b/web/client.html
index a95bbb7..a6052f2 100644
--- a/web/client.html
+++ b/web/client.html
@@ -218,6 +218,8 @@
renderPlaylist();
}
+ votes.delete(currentSong.uri);
+
const songLabel = document.createTextNode(formatSong(currentSong));
playing = document.getElementById("playing");