aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-02-06 02:11:16 -0800
committerFuwn <[email protected]>2024-02-06 02:11:16 -0800
commit9437ef65b5a3a3c5365fa1df0f3d5ba4cee43b9d (patch)
tree914afc000a139e0cffd17563d19572480c9a04fd /src/routes/+layout.svelte
parentfeat(badges): import events (diff)
downloaddue.moe-9437ef65b5a3a3c5365fa1df0f3d5ba4cee43b9d.tar.xz
due.moe-9437ef65b5a3a3c5365fa1df0f3d5ba4cee43b9d.zip
feat(layout): remove stores using localstorage
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 43cdf0ee..7f770e7a 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -131,7 +131,8 @@
href={'#'}
class="header-item"
on:click={() => {
- userIdentity.set(defaultIdentity);
+ localStorage.removeItem('identity');
+ localStorage.removeItem('commit');
window.location.href = root('/api/authentication/log-out');
}}