mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 05:23:48 +00:00
auth
This commit is contained in:
committed by
Trajkov Dimitar
parent
b569e682e8
commit
c145403afd
@@ -198,12 +198,13 @@ export class LocalServer {
|
||||
});
|
||||
}
|
||||
|
||||
public endGame() {
|
||||
public async endGame() {
|
||||
console.log("local server ending game");
|
||||
clearInterval(this.turnCheckInterval);
|
||||
if (this.isReplay) {
|
||||
return;
|
||||
}
|
||||
|
||||
const players: PlayerRecord[] = [
|
||||
{
|
||||
persistentID: getPersistentID(),
|
||||
|
||||
@@ -292,4 +292,14 @@ export class TerritoryPatternsModal extends LitElement {
|
||||
render(preview, this.previewButton);
|
||||
this.requestUpdate();
|
||||
}
|
||||
|
||||
private isLoggedIn(): boolean {
|
||||
if (this.userMeResponse === false) {
|
||||
return false;
|
||||
}
|
||||
return (
|
||||
this.userMeResponse.user.discord !== undefined ||
|
||||
this.userMeResponse.user.email !== undefined
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user