Make the login persisten between reloads
This commit is contained in:
parent
cb67093ce0
commit
2f91fe8572
2 changed files with 16 additions and 0 deletions
|
|
@ -5,6 +5,8 @@
|
|||
import LeftSidebar from "$lib/components/LeftSidebar.svelte";
|
||||
import ChatSidebar from "$lib/components/ChatSidebar.svelte";
|
||||
import { page } from "$app/state";
|
||||
import { onMount } from "svelte";
|
||||
import { restoreSession } from "$lib/auth.svelte";
|
||||
|
||||
let { children } = $props();
|
||||
|
||||
|
|
@ -12,6 +14,8 @@
|
|||
const mode: "simple" | "full" = "full";
|
||||
const chatEnabled = true;
|
||||
|
||||
onMount(restoreSession);
|
||||
|
||||
let chatExpanded = $state(false);
|
||||
|
||||
const activeRoom = $derived(page.params.slug ?? "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue