From c1339dc673fbd1a6cc752c97b2c54c78881b5395 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 15 Mar 2021 19:33:34 -0600 Subject: [PATCH] Don't allow the server error to appear before initial connection --- web/src/App.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/App.vue b/web/src/App.vue index 30430ad..c7c8102 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -3,7 +3,7 @@
No connection to the game server.
@@ -70,6 +70,7 @@ export default { message: null, type: null, }, + ready: false, }}, computed: { gameState() { @@ -119,6 +120,11 @@ export default { }; }, }, + mounted() { + setTimeout(() => { + this.ready = true; + }, 1000); + }, }