diff options
| author | Adam Soltys <[email protected]> | 2026-03-04 23:06:35 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-04 23:06:35 -0800 |
| commit | e5f37b003d93a17c2a9958697269b2d3228d8830 (patch) | |
| tree | e2c3a3c4d1bec48d323e830f5be35d5832845a9a /src/routes/+layout.svelte | |
| parent | e6882c6a8987e23215a2538b242431ae603c7101 (diff) | |
| download | coinos-ui-e5f37b003d93a17c2a9958697269b2d3228d8830.tar.gz coinos-ui-e5f37b003d93a17c2a9958697269b2d3228d8830.zip | |
tuning
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9047c382..3c44f905 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,14 +3,15 @@ import { browser } from "$app/environment"; import { PUBLIC_DOMAIN } from "$env/static/public"; import "../app.css"; - import { loading, t } from "$lib/translations"; + import { t } from "$lib/translations"; import { onMount } from "svelte"; import { installPrompt, theme as themeStore } from "$lib/store"; + import { page } from "$app/stores"; const map = { light: "lofi", dark: "black", system: "system" }; let { data, children } = $props<any>(); - let pathname = $derived(data.pathname); + let pathname = $derived($page.url.pathname); let theme = $derived(data.theme); $effect(() => { $themeStore = theme; @@ -94,11 +95,9 @@ <meta name="twitter:creator" content="@coinoswallet" /> </svelte:head> -{#if !$loading} - <main> - {@render children?.()} - </main> -{/if} +<main> + {@render children?.()} +</main> <style> :global(:root) { |
