Browse Source

* Fixed first profile appearance SPA

master
vvandenb 2 years ago
parent
commit
15e80abd95
  1. 4
      front/src/App.svelte

4
front/src/App.svelte

@ -88,8 +88,10 @@
}
onMount(() => {
if (window.location.pathname === "/profile")
if (window.location.pathname === "/profile") {
appState = APPSTATE.PROFILE;
history.replaceState({ appState: "/profile" }, "", "/profile");
}
else
history.replaceState({ appState: "" }, "", "/");
window.onpopstate = (e: PopStateEvent) => {

Loading…
Cancel
Save