0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00
This commit is contained in:
2025-12-14 20:56:39 +01:00
parent d631c149d2
commit f6a5c4a364

View File

@@ -286,6 +286,12 @@
if(p && currentTrackPath.includes(p) && i === currentTrackIndex){ if(p && currentTrackPath.includes(p) && i === currentTrackIndex){
li.classList.add("current"); li.classList.add("current");
currentIndex = i; currentIndex = i;
} else if (i === currentTrackIndex) {
function replaceAt(str, index, replacement) {
if (index < 0 || index >= str.length) return str; // index out of bounds
return str.slice(0, index) + replacement + str.slice(index + 1);
}
li.textContent = replaceAt(li.textContent, 0, ">")
} }
if(currentIndex && (currentIndex+1 === i) && skipNext && (putQueue.length === 0)) { if(currentIndex && (currentIndex+1 === i) && skipNext && (putQueue.length === 0)) {
li.style.textDecoration = "line-through"; li.style.textDecoration = "line-through";