0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

i hate javascript

This commit is contained in:
2025-12-14 12:06:15 +01:00
parent 63453f9d0a
commit 4ca9a77d25

View File

@@ -285,9 +285,8 @@
li.classList.add("current");
currentIndex = i;
}
if(currentIndex+1 === i && skipNext && putQueue.length === 0) {
if(currentIndex && (currentIndex+1 === i) && skipNext && (putQueue.length === 0)) {
li.style.textDecoration = "line-through";
console.log(i, currentIndex, li.textContent)
}
ul.appendChild(li);
});