Fix critical bugs: touchEnabled undefined, MongoDB score sorting with score_value field

This commit is contained in:
2026-01-15 23:39:12 +08:00
parent d6a1b6bd41
commit 76a3d52098
2 changed files with 11 additions and 7 deletions

View File

@@ -130,8 +130,9 @@ class Leaderboard {
assets.sounds["se_cancel"].play()
// Return to song select
// Return to song select - get touchEnabled from global or default to false
setTimeout(() => {
var touchEnabled = typeof window.touchEnabled !== 'undefined' ? window.touchEnabled : false
new SongSelect(false, false, touchEnabled)
}, 100)
}