Make sure to always load the home route when starting the app

This commit is contained in:
kolaente 2020-10-08 22:17:41 +02:00
parent 5bb8afbde5
commit 844905b0d9
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -392,6 +392,11 @@ export default {
}, },
created() { 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 // Service worker communication
document.addEventListener(swEvents.SW_UPDATED, this.showRefreshUI, {once: true}) document.addEventListener(swEvents.SW_UPDATED, this.showRefreshUI, {once: true})