From 51c140fbfa854c1a816574cef92f00fcaeb8f3d1 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 31 Aug 2024 17:46:10 +0000 Subject: [PATCH] web: make everything ssr-compatible --- web/src/components/save/Omnibox.svelte | 3 +- web/src/lib/device.ts | 70 ++++++++++++---------- web/src/lib/env.ts | 21 +++++-- web/src/lib/libav.ts | 5 +- web/src/lib/state/settings.ts | 4 ++ web/src/lib/state/theme.ts | 19 ++++-- web/src/routes/settings/+layout.svelte | 3 +- web/src/routes/settings/debug/+page.svelte | 9 +-- web/src/routes/updates/+page.svelte | 10 +++- 9 files changed, 91 insertions(+), 53 deletions(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index e4dc0587..1b3c117d 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -1,6 +1,7 @@ {#if $settings.advanced.debug} diff --git a/web/src/routes/updates/+page.svelte b/web/src/routes/updates/+page.svelte index 9d7bc1ea..ed2995b4 100644 --- a/web/src/routes/updates/+page.svelte +++ b/web/src/routes/updates/+page.svelte @@ -1,10 +1,11 @@