feat(web/m7-364): mount QueueDrawer + esc handler + restore on bootstrap

This commit is contained in:
2026-05-03 21:53:36 -04:00
parent 82846c9fcd
commit 49c8e5959e
2 changed files with 19 additions and 2 deletions
+4 -1
View File
@@ -1,10 +1,13 @@
import type { LayoutLoad } from './$types';
import { bootstrap } from '$lib/auth/store.svelte';
import { bootstrap, user } from '$lib/auth/store.svelte';
import { restoreQueue } from '$lib/player/store.svelte';
export const ssr = false; // adapter-static fallback; we're SPA-only
export const prerender = false;
export const load: LayoutLoad = async () => {
await bootstrap();
const userId = user.value?.id;
if (userId) restoreQueue(userId);
return {};
};