fix: invalid env/static/public
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -28,7 +28,6 @@ function getFromStorage<T>(key: string): T | undefined {
|
|||||||
return JSON.parse(lc)
|
return JSON.parse(lc)
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
function setFromStorage(key: string, item: any, stringify: boolean = true) {
|
function setFromStorage(key: string, item: any, stringify: boolean = true) {
|
||||||
if (typeof localStorage == 'undefined') return
|
if (typeof localStorage == 'undefined') return
|
||||||
return localStorage.setItem(key, stringify ? JSON.stringify(item) : item)
|
return localStorage.setItem(key, stringify ? JSON.stringify(item) : item)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
import EndPlaceholder from '../EndPlaceholder.svelte'
|
import EndPlaceholder from '../EndPlaceholder.svelte'
|
||||||
import ProfileSelection from './ProfileSelection.svelte'
|
import ProfileSelection from './ProfileSelection.svelte'
|
||||||
import Logo from '../Logo.svelte'
|
import Logo from '../Logo.svelte'
|
||||||
import { PUBLIC_XYLIGHT_MODE } from '$env/static/public'
|
import { env } from '$env/dynamic/public'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
style?: string
|
style?: string
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
{__VERSION__}
|
{__VERSION__}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{#if PUBLIC_XYLIGHT_MODE.toLowerCase() == 'true'}
|
{#if env.PUBLIC_XYLIGHT_MODE.toLowerCase() == 'true'}
|
||||||
<a
|
<a
|
||||||
href="https://github.com/xyphyn/photon"
|
href="https://github.com/xyphyn/photon"
|
||||||
class="text-blue-600 dark:text-blue-400/60 hover:underline"
|
class="text-blue-600 dark:text-blue-400/60 hover:underline"
|
||||||
|
|||||||
Reference in new issue
Block a user