aboutsummaryrefslogtreecommitdiff
path: root/web/client.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/client.html')
-rw-r--r--web/client.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/client.html b/web/client.html
index 2ca1f0d..9998940 100644
--- a/web/client.html
+++ b/web/client.html
@@ -77,10 +77,9 @@
let votes = new Map();
function formatSong(song) {
- let s = song.weight + ' '
if (song.artist)
- return s + song.artist + ' - ' + song.title
- return s + song.title
+ return song.artist + ' - ' + song.title
+ return song.title
}
function renderPlaylist() {
@@ -138,7 +137,7 @@
listItem.appendChild(upvoteBtn);
listItem.appendChild(downvoteBtn);
- const itemValue = document.createTextNode(formatSong(song));
+ const itemValue = document.createTextNode(song.weight + ' ' + formatSong(song));
listItem.appendChild(itemValue);
playlist.appendChild(listItem);
}