From 844905b0d9c84828550d4b2045f65c867787dba3 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 8 Oct 2020 22:17:41 +0200 Subject: [PATCH] Make sure to always load the home route when starting the app --- src/App.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.vue b/src/App.vue index 7ca2290c..add6b28f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -392,6 +392,11 @@ export default { }, created() { + // Make sure to always load the home route when running with electron + if(this.$route.fullPath.endsWith('frontend/index.html')) { + this.$router.push({name: 'home'}) + } + // Service worker communication document.addEventListener(swEvents.SW_UPDATED, this.showRefreshUI, {once: true})