diff options
| author | Fuwn <[email protected]> | 2024-02-06 02:11:16 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-06 02:11:16 -0800 |
| commit | 9437ef65b5a3a3c5365fa1df0f3d5ba4cee43b9d (patch) | |
| tree | 914afc000a139e0cffd17563d19572480c9a04fd /src/routes/+layout.svelte | |
| parent | feat(badges): import events (diff) | |
| download | due.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.svelte | 3 |
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'); }} |