From a537f97ef304815d072c48eccf729ae59297ad87 Mon Sep 17 00:00:00 2001 From: James Xylight Date: Sat, 30 Aug 2025 21:20:26 -0700 Subject: [PATCH] fix: invalid env/static/public --- src/lib/auth.svelte.ts | 1 - src/lib/components/ui/sidebar/Sidebar.svelte | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/auth.svelte.ts b/src/lib/auth.svelte.ts index 466aae74..43f1ea97 100644 --- a/src/lib/auth.svelte.ts +++ b/src/lib/auth.svelte.ts @@ -28,7 +28,6 @@ function getFromStorage(key: string): T | undefined { return JSON.parse(lc) } -// eslint-disable-next-line function setFromStorage(key: string, item: any, stringify: boolean = true) { if (typeof localStorage == 'undefined') return return localStorage.setItem(key, stringify ? JSON.stringify(item) : item) diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index 6b65b340..aa1b76e0 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -27,7 +27,7 @@ import EndPlaceholder from '../EndPlaceholder.svelte' import ProfileSelection from './ProfileSelection.svelte' import Logo from '../Logo.svelte' - import { PUBLIC_XYLIGHT_MODE } from '$env/static/public' + import { env } from '$env/dynamic/public' interface Props { style?: string @@ -180,7 +180,7 @@ {__VERSION__} - {#if PUBLIC_XYLIGHT_MODE.toLowerCase() == 'true'} + {#if env.PUBLIC_XYLIGHT_MODE.toLowerCase() == 'true'}