mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-09-08 11:25:10 -05:00
Improve the communication error message
This commit is contained in:
@@ -159,7 +159,7 @@ function onGameStateChange(game: any, playerData: PlayerData | null) {
|
||||
let errorDialogCallback: ((e: Event) => void) | null = null;
|
||||
function communicationError(message?: string, showButton?: boolean, callback?: (e: Event) => void) {
|
||||
preGameLoadingSection.hidden = true;
|
||||
errorMessage.innerText = message ?? 'A communication error has occurred.';
|
||||
errorMessage.innerText = message ?? 'A communication error has occurred.\nPlease reload the page to rejoin.';
|
||||
errorDialogCallback = callback ?? null;
|
||||
errorDialogForm.hidden = showButton != true;
|
||||
errorDialog.showModal();
|
||||
|
||||
Reference in New Issue
Block a user