🧼 Removes embedded build flag

This commit is contained in:
Rune Harlyk
2024-08-24 21:03:47 +02:00
committed by Rune Harlyk
parent 3ac81b376d
commit ce1558a6ab
2 changed files with 2 additions and 4 deletions
@@ -1,8 +1,6 @@
import { writable } from 'svelte/store';
import { browser } from '$app/environment';
export const isEmbeddedApp = import.meta.env.VITE_EMBEDDED_BUILD === 'true';
export const persistentStore = <T>(key: string, initialValue: T) => {
const savedValue = browser ? localStorage.getItem(key) : null;
const data: T = savedValue !== null ? JSON.parse(savedValue) : initialValue;