diff --git a/modules/web.html b/modules/web.html
index c46df13..263c1a3 100644
--- a/modules/web.html
+++ b/modules/web.html
@@ -264,6 +264,7 @@
return;
}
Array.from(dirsBox.children).forEach(c=>c.classList.remove("selected"));
+ Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected"));
node.classList.add("selected"); selectedSubFile = f;
});
dirsBox.appendChild(node);
@@ -438,7 +439,6 @@
if (selectedSubFile && selectedDir) {
fullPath = subbasePath.replace(/\/$/, '') + '/' + selectedSubFile;
Array.from(document.getElementById("subdir-box").children).forEach(c => c.classList.remove("selected"));
- Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected"));
selectedSubFile = null;
}
// Priority 2: selected main directory file