diff options
| author | stonedDiscord <stoned@derpymail.org> | 2019-07-16 23:25:47 +0200 |
|---|---|---|
| committer | stonedDiscord <stoned@derpymail.org> | 2019-07-16 23:25:47 +0200 |
| commit | 9403549f72a601454970d36fa30e7e2f012352e2 (patch) | |
| tree | 8ac2d19785dc1161f0800cec151db6b804f5d019 /webAO/client.js | |
| parent | c4af177195941032be4fb656f57aed19e535aaee (diff) | |
css magic so errors and loading look similiar
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index 3a501bf..b913139 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -400,7 +400,7 @@ class Client extends EventEmitter { onClose(e) { console.error(`The connection was closed: ${e.reason} (${e.code})`); if (e.code !== 1001) { - document.getElementById("client_error").style.display = "block"; + document.getElementById("client_error").style.display = "flex"; document.getElementById("client_loading").style.display = "none"; document.getElementById("error_id").textContent = e.code; this.cleanup(); @@ -430,7 +430,7 @@ class Client extends EventEmitter { */ onError(e) { console.error(`A network error occurred: ${e.reason} (${e.code})`); - document.getElementById("client_error").style.display = "block"; + document.getElementById("client_error").style.display = "flex"; document.getElementById("client_loading").style.display = "none"; document.getElementById("error_id").textContent = e.code; this.cleanup(); |
