From e58c9c7f6fadbf4f5e007a0ef70cb29cc14f91c2 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 28 Aug 2022 15:20:30 +0200 Subject: [PATCH] Navbar: workaround NodeJS missing location.reload --- src/views/layout/components/Navbar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index 0d9ce643..66fe0dc5 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -38,7 +38,9 @@ export default { }, logout() { this.$store.dispatch('LogOut').then(() => { - location.reload()// In order to re-instantiate the vue-router object to avoid bugs + if (location.reload) { + location.reload() // In order to re-instantiate the vue-router object to avoid bugs + } }) } }