Skip to content

Commit

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

window.location.reload();
}

private handleServerNotificationEvent(
Expand Down

0 comments on commit 8d1a2de

Please sign in to comment.