mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-04 20:27:14 +00:00
Log public id (#1278)
## Description: Log player public id to the console. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors
This commit is contained in:
@@ -203,6 +203,10 @@ class Client {
|
|||||||
logoutDiscordButton.hidden = true;
|
logoutDiscordButton.hidden = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(
|
||||||
|
`Your player ID is ${userMeResponse.player.publicId}\n` +
|
||||||
|
"Sharing this ID will allow others to view your game history and stats.",
|
||||||
|
);
|
||||||
loginDiscordButton.translationKey = "main.logged_in";
|
loginDiscordButton.translationKey = "main.logged_in";
|
||||||
loginDiscordButton.hidden = true;
|
loginDiscordButton.hidden = true;
|
||||||
const { user, player } = userMeResponse;
|
const { user, player } = userMeResponse;
|
||||||
|
|||||||
Reference in New Issue
Block a user