From f51b623b08c3fac87f0cfba13d2d06c50e1979d6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 31 Mar 2022 20:03:45 +0400 Subject: [PATCH] Updated main.js for a new last played layout. --- internal/handlers/web/assets/js/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/handlers/web/assets/js/main.js b/internal/handlers/web/assets/js/main.js index fdd4001..7ce6a33 100644 --- a/internal/handlers/web/assets/js/main.js +++ b/internal/handlers/web/assets/js/main.js @@ -31,10 +31,10 @@ function updateLastPlayedSong() { let row = $('last-played').insertRow(); let start_time = row.insertCell(); start_time.appendChild(document.createTextNode(last_played.time)); - let artist_cell = row.insertCell(); - artist_cell.appendChild(document.createTextNode(last_played.artist)); - let title_cell = row.insertCell(); - title_cell.appendChild(document.createTextNode(last_played.title)); + let listeners_cell = row.insertCell(); + listeners_cell.appendChild(document.createTextNode(last_played.listeners)); + let song_cell = row.insertCell(); + song_cell.appendChild(document.createTextNode(last_played.song)); }); }