mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:30:43 +00:00
bugfix: usernames are reset after each game
This commit is contained in:
@@ -43,8 +43,10 @@ export class UsernameInput extends LitElement {
|
||||
const stored = this.getUsername();
|
||||
this.parseAndSetUsername(stored);
|
||||
crazyGamesSDK.getUsername().then((username) => {
|
||||
this.parseAndSetUsername(username ?? genAnonUsername());
|
||||
this.requestUpdate();
|
||||
if (username) {
|
||||
this.parseAndSetUsername(username ?? genAnonUsername());
|
||||
this.requestUpdate();
|
||||
}
|
||||
});
|
||||
crazyGamesSDK.addAuthListener((user) => {
|
||||
if (user) {
|
||||
|
||||
Reference in New Issue
Block a user