1
0

Updated main.js for a new last played layout.

This commit is contained in:
Alexander Andreev 2022-03-31 20:03:45 +04:00
parent 52696c026e
commit f51b623b08
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -31,10 +31,10 @@ function updateLastPlayedSong() {
let row = $('last-played').insertRow(); let row = $('last-played').insertRow();
let start_time = row.insertCell(); let start_time = row.insertCell();
start_time.appendChild(document.createTextNode(last_played.time)); start_time.appendChild(document.createTextNode(last_played.time));
let artist_cell = row.insertCell(); let listeners_cell = row.insertCell();
artist_cell.appendChild(document.createTextNode(last_played.artist)); listeners_cell.appendChild(document.createTextNode(last_played.listeners));
let title_cell = row.insertCell(); let song_cell = row.insertCell();
title_cell.appendChild(document.createTextNode(last_played.title)); song_cell.appendChild(document.createTextNode(last_played.song));
}); });
} }