Skip to content

Commit

Permalink
Revert "Replace alert with console.warn for server connection message…
Browse files Browse the repository at this point in the history
…s" (#54)
  • Loading branch information
MiguelRipoll23 authored Dec 10, 2024
1 parent fad4705 commit af6915f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/game-loop-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ export class GameLoopService {
payload: ServerDisconnectedPayload
): void {
if (payload.connectionLost) {
console.warn("Connection to server lost");
alert("Connection to server was lost");
} else {
console.warn("Failed to connect to server");
alert("Failed to connect to server");
}

window.location.reload();
}

private handleServerNotificationEvent(
Expand Down

0 comments on commit af6915f

Please sign in to comment.