高速化する
This commit is contained in:
@@ -129,7 +129,7 @@ class SongSelect{
|
|||||||
song.subtitlePrepared = subtitle ? fuzzysort.prepare(this.search.normalizeString(subtitle)) : null
|
song.subtitlePrepared = subtitle ? fuzzysort.prepare(this.search.normalizeString(subtitle)) : null
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.songs.push(this.addSong(song))
|
this.songs.push(this.addSong(song))
|
||||||
}, songIndex * 50);
|
}, songIndex);
|
||||||
songIndex++;
|
songIndex++;
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -150,7 +150,7 @@ class SongSelect{
|
|||||||
if (titlesort === "true") {
|
if (titlesort === "true") {
|
||||||
this.songs.sort((a, b) => a.title.localeCompare(b.title));
|
this.songs.sort((a, b) => a.title.localeCompare(b.title));
|
||||||
}
|
}
|
||||||
}, songIndex * 50 + 50);
|
}, songIndex + 50);
|
||||||
if(assets.songs.length){
|
if(assets.songs.length){
|
||||||
this.songs.push({
|
this.songs.push({
|
||||||
title: strings.back,
|
title: strings.back,
|
||||||
|
|||||||
Reference in New Issue
Block a user