mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Fix spurious redirect in display initial creation.
This commit is contained in:
@@ -25,7 +25,9 @@ func (web *Web) enforceDisplayConfiguration(w http.ResponseWriter, r *http.Reque
|
||||
displayId = web.arena.NextDisplayId()
|
||||
allPresent = false
|
||||
}
|
||||
configuration["nickname"] = r.URL.Query().Get("nickname")
|
||||
if nickname := r.URL.Query().Get("nickname"); nickname != "" {
|
||||
configuration["nickname"] = nickname
|
||||
}
|
||||
|
||||
// Get display-specific fields from the query parameters.
|
||||
if defaults != nil {
|
||||
|
||||
Reference in New Issue
Block a user