Skip to content

Commit

Permalink
[FIX] Ensure zelid persists and is correctly retrieved after refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
XK4MiLX committed Oct 30, 2024
1 parent f7ebc78 commit 8a43c94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions HomeUI/src/layouts/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ export default {
]),
},
mounted() {
const storedZelidauth = localStorage.getItem('zelidauth');
if (storedZelidauth) {
const authData = qs.parse(storedZelidauth);
if (authData.zelid) {
this.$store.commit('flux/setZelid', authData.zelid);
}
}
const { protocol, hostname, port } = window.location;
let mybackend = '';
mybackend += protocol;
Expand Down

0 comments on commit 8a43c94

Please sign in to comment.