mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
refac: unnecessary code
This commit is contained in:
parent
94c845d71f
commit
8f8a68e002
@ -16,8 +16,6 @@
|
||||
// General
|
||||
let themes = ['dark', 'light', 'rose-pine dark', 'rose-pine-dawn light'];
|
||||
let selectedTheme = 'system';
|
||||
let actualTheme: string;
|
||||
$: actualTheme = $theme;
|
||||
|
||||
let languages = [];
|
||||
let lang = $i18n.language;
|
||||
@ -72,7 +70,6 @@
|
||||
|
||||
onMount(async () => {
|
||||
selectedTheme = localStorage.getItem('theme') ?? 'system';
|
||||
applyTheme(selectedTheme);
|
||||
|
||||
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
||||
languages = await getLanguages();
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { APP_NAME } from '$lib/constants';
|
||||
import { writable, derived } from 'svelte/store';
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
// Backend
|
||||
export const WEBUI_NAME = writable(APP_NAME);
|
||||
|
Loading…
Reference in New Issue
Block a user