aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-09 18:31:03 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-01-09 18:31:03 -0500
commit6a45fd58601a2b03ed234f05b9b0a1b91d25a54d (patch)
tree23bc7c4fa3ce4202a0f37fb1a561770dd155b6d6 /src/client/DocServer.ts
parent13ad9e65697101574893a1fcdf49e018391d0d33 (diff)
azure ink fixes, session
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts
index 1723312cf..12fed3e46 100644
--- a/src/client/DocServer.ts
+++ b/src/client/DocServer.ts
@@ -64,13 +64,14 @@ export namespace DocServer {
}
}
+ const instructions = "This page will automatically refresh after this alert is closed. Expect to reconnect after about 30 seconds.";
function alertUser(connectionTerminationReason: string) {
switch (connectionTerminationReason) {
case "crash":
- alert("Dash has temporarily crashed. Administrators have been notified and the server is restarting itself. Please refresh your page in a few seconds, and expect to reconnect after about 30 seconds.");
+ alert(`Dash has temporarily crashed. Administrators have been notified and the server is restarting itself. ${instructions}`);
break;
case "temporary":
- alert("An administrator has chosen to restart the server. Please refresh your page in a few seconds, and expect to reconnect after about 30 seconds.");
+ alert(`An administrator has chosen to restart the server. ${instructions}`);
break;
case "exit":
alert("An administrator has chosen to kill the server. Do not expect to reconnect until administrators start the server.");
@@ -78,6 +79,7 @@ export namespace DocServer {
default:
console.log(`Received an unknown ConnectionTerminated message: ${connectionTerminationReason}`);
}
+ window.location.reload();
}
export function init(protocol: string, hostname: string, port: number, identifier: string) {