refactor how client settings are saved and loaded #32

Merged
twig merged 3 commits from client-settings-refactor into main 2025-07-12 19:59:41 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 2cc42a729b - Show all commits

View file

@ -44,7 +44,7 @@ function contextMenuHandler(e: MouseEvent) {
//]);
}
const currentTheme = settingLoad("selectedThemeUrl") ?? "dark"
const currentTheme = settingLoad("selectedThemeId") ?? "dark"
const baseURL = useRuntimeConfig().app.baseURL;
useHead({

View file

@ -48,7 +48,7 @@ function changeTheme(id: string, url: string) {
return;
}
settingSave("selectedThemeUrl", id)
settingSave("selectedThemeId", id)
// if the theme didn't originally load for some reason, create it
if (!themeLinkElement) {