fix wtv-setup incorrect optimizations

This commit is contained in:
zefie
2025-08-12 16:41:53 -04:00
parent dcb8b72c1b
commit 733200c897
10 changed files with 25 additions and 27 deletions

View File

@@ -85,8 +85,8 @@ ${(categories.length > 14) ? '</font>' : ''}
`;
Object.keys(categories).forEach(function (k) {
var catID = categories[k].id;
var songsInCat = wtvbgm.getCategorySongList(catID);
const catID = categories[k].id;
const songsInCat = wtvbgm.getCategorySongList(catID);
if (songsInCat.length > 0) {
if (catsListed == divide) {
data += `</td ><td width="20">