Play se_don on title screen more fittingly

This commit is contained in:
LoveEevee
2021-05-28 04:55:53 +03:00
parent b42b246a99
commit 9c44d223c4
3 changed files with 23 additions and 5 deletions

View File

@@ -363,6 +363,9 @@ class CustomSongs{
open("privacy")
}
loading(show){
if(this.noPage){
return
}
if(show){
loader.screen.appendChild(this.loaderDiv)
}else if(this.loaderDiv.parentNode){
@@ -376,7 +379,9 @@ class CustomSongs{
assets.customSongs = true
assets.customSelected = this.noPage ? +localStorage.getItem("customSelected") : 0
}
assets.sounds["se_don"].play()
if(!this.noPage){
assets.sounds["se_don"].play()
}
this.clean()
setTimeout(() => {
new SongSelect("customSongs", false, this.touchEnabled)