Skip to content

Commit

Permalink
Initial bump auth service instance up to layout to share between comp…
Browse files Browse the repository at this point in the history
…onents
  • Loading branch information
daniellrgn committed Dec 3, 2024
1 parent a1d84de commit 0a75dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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<SHLAdminParams[]>(
Expand All @@ -41,6 +42,8 @@
let mode: Writable<string> = getContext('mode');
let authService = new AuthService();
$: {
if ($shlStore) window.localStorage[LOCAL_STORAGE_KEY] = JSON.stringify($shlStore);
}
Expand Down

0 comments on commit 0a75dad

Please sign in to comment.