global player pt. 5 client only

This commit is contained in:
2026-02-06 01:53:17 -08:00
parent ccf3a6bc1f
commit a85441faa7
3 changed files with 42 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
import "./layout.css";
import favicon from "$lib/assets/favicon.svg";
import GlobalPlayer from "$lib/components/GlobalPlayer.svelte";
import ClientOnly from "$lib/components/util/ClientOnly.svelte";
let { children } = $props();
</script>
@@ -10,4 +11,8 @@
><link rel="icon" href={favicon} /><title>AMQ Train</title></svelte:head
>
{@render children()}
<GlobalPlayer />
<ClientOnly showFallback={false}>
{#snippet children()}
<GlobalPlayer />
{/snippet}
</ClientOnly>