バグの修正

This commit is contained in:
yuuki
2025-01-09 17:12:52 +09:00
parent ae84364572
commit b31d5e2a16

View File

@@ -141,7 +141,9 @@ class SongSelect{
return a.id > b.id ? 1 : -1 return a.id > b.id ? 1 : -1
} }
}) })
if (localStorage.getItem("titlesort") ?? "false" === "true") { const titlesort = localStorage.getItem("titlesort") ?? "false";
if (titlesort === "true") {
console.log("sorting...")
this.songs.sort((a, b) => a.title.localeCompare(b.title)); this.songs.sort((a, b) => a.title.localeCompare(b.title));
} }
if(assets.songs.length){ if(assets.songs.length){