From 3d77e9823d6b5fe4c87ba0e61876c255550163a8 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 12 Mar 2023 05:03:51 +0100 Subject: [PATCH] fix(frontend): always render log out page client side --- frontend/src/routes/auth/logout/+page.svelte | 2 -- frontend/src/routes/auth/logout/+page.ts | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 frontend/src/routes/auth/logout/+page.ts diff --git a/frontend/src/routes/auth/logout/+page.svelte b/frontend/src/routes/auth/logout/+page.svelte index 0c8326b..611a46a 100644 --- a/frontend/src/routes/auth/logout/+page.svelte +++ b/frontend/src/routes/auth/logout/+page.svelte @@ -3,8 +3,6 @@ import { userStore } from "$lib/store"; import { onMount } from "svelte"; - export const ssr = false; - onMount(() => { userStore.set(null); localStorage.removeItem("pronouns-token"); diff --git a/frontend/src/routes/auth/logout/+page.ts b/frontend/src/routes/auth/logout/+page.ts new file mode 100644 index 0000000..a3d1578 --- /dev/null +++ b/frontend/src/routes/auth/logout/+page.ts @@ -0,0 +1 @@ +export const ssr = false;