Fix critical bugs: touchEnabled undefined, MongoDB score sorting with score_value field
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user