fix: invalid env/static/public

This commit is contained in:
James Xylight committed 2025-08-30 21:20:26 -07:00
1 parent e459d87644
commit a537f97ef3
2 files changed
+2 -3

No files matched your search

-1
View File
@@ -28,7 +28,6 @@ function getFromStorage<T>(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)
+2 -2
View File
@@ -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__}
</span>
</div>
{#if PUBLIC_XYLIGHT_MODE.toLowerCase() == 'true'}
{#if env.PUBLIC_XYLIGHT_MODE.toLowerCase() == 'true'}
<a
href="https://github.com/xyphyn/photon"
class="text-blue-600 dark:text-blue-400/60 hover:underline"