diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 9594d9e..0d61d77 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -23,6 +23,7 @@ import Auth from '$lib/components/app/Auth.svelte'; import LanguageMenu from '$lib/components/layout/LanguageMenu.svelte'; import Banner from '$lib/components/layout/Banner.svelte'; + import { AuthService } from '$lib/utils/AuthService'; const LOCAL_STORAGE_KEY = 'shlips_store_shls'; let shlStore = writable( @@ -41,6 +42,8 @@ let mode: Writable = getContext('mode'); + let authService = new AuthService(); + $: { if ($shlStore) window.localStorage[LOCAL_STORAGE_KEY] = JSON.stringify($shlStore); }