Make sure to always load the home route when starting the app
This commit is contained in:
parent
5bb8afbde5
commit
844905b0d9
1 changed files with 5 additions and 0 deletions
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in a new issue