If there was no listeners on a track, then print nothing.
This commit is contained in:
parent
ee10fc1c9e
commit
0360efc147
@ -32,7 +32,7 @@ function updateLastPlayedSong() {
|
||||
let start_time = row.insertCell();
|
||||
start_time.appendChild(document.createTextNode(last_played.time));
|
||||
let listeners_cell = row.insertCell();
|
||||
listeners_cell.appendChild(document.createTextNode(last_played.listeners));
|
||||
listeners_cell.appendChild(document.createTextNode(last_played.listeners == 0 ? "" : last_played.listeners));
|
||||
let song_cell = row.insertCell();
|
||||
song_cell.appendChild(document.createTextNode(last_played.song));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user