Do not remove first row while there is less than 10 rows.
This commit is contained in:
parent
d48972caa0
commit
6b1f2e76e3
@ -24,6 +24,7 @@ function updateLastPlayedSong() {
|
||||
if (last_played.time == $('last-played').firstChild.lastChild.firstChild.innerText)
|
||||
return;
|
||||
|
||||
if ($('last-played').firstChild.children.length == 10)
|
||||
$('last-played').firstChild.firstChild.remove();
|
||||
|
||||
let row = $('last-played').insertRow();
|
||||
|
Loading…
Reference in New Issue
Block a user