mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 12:40:46 +00:00
Trim git comment to remove trailing \n
This commit is contained in:
@@ -269,7 +269,7 @@ export class JoinPrivateLobbyModal extends LitElement {
|
||||
// commit.txt is not found when running locally
|
||||
myGitCommit = "DEV";
|
||||
} else if (gitCommitResponse.status === 200) {
|
||||
myGitCommit = await gitCommitResponse.text();
|
||||
myGitCommit = (await gitCommitResponse.text()).trim();
|
||||
} else {
|
||||
console.error("Error getting git commit:", gitCommitResponse.status);
|
||||
return "error";
|
||||
|
||||
Reference in New Issue
Block a user