From a24cb11e170e34f4aebaa840338ba0c372ec8f08 Mon Sep 17 00:00:00 2001 From: Ben Willmore Date: Fri, 25 Feb 2022 22:03:21 +0000 Subject: [PATCH] Reconnect websocket when window receives focus --- web-src/src/App.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web-src/src/App.vue b/web-src/src/App.vue index bc6949c8..1166ff41 100644 --- a/web-src/src/App.vue +++ b/web-src/src/App.vue @@ -93,6 +93,8 @@ export default { moment.locale(navigator.language) this.connect() + window.addEventListener(focus, () => this.connect()) + // Start the progress bar on app start this.$Progress.start()