refac: unnecessary code

This commit is contained in:
Timothy J. Baek 2024-03-18 00:30:08 -07:00
parent 94c845d71f
commit 8f8a68e002
2 changed files with 1 additions and 4 deletions

View file

@ -16,8 +16,6 @@
// General // General
let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light']; let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light'];
let selectedTheme = 'system'; let selectedTheme = 'system';
let actualTheme: string;
$: actualTheme = $theme;
let languages = []; let languages = [];
let lang = $i18n.language; let lang = $i18n.language;
@ -72,7 +70,6 @@
onMount(async () => { onMount(async () => {
selectedTheme = localStorage.getItem('theme') ?? 'system'; selectedTheme = localStorage.getItem('theme') ?? 'system';
applyTheme(selectedTheme);
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}'); let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
languages = await getLanguages(); languages = await getLanguages();

View file

@ -1,5 +1,5 @@
import { APP_NAME } from '$lib/constants'; import { APP_NAME } from '$lib/constants';
import { writable, derived } from 'svelte/store'; import { writable } from 'svelte/store';
// Backend // Backend
export const WEBUI_NAME = writable(APP_NAME); export const WEBUI_NAME = writable(APP_NAME);