fix: rename selectedThemeUrl to selectedThemeId, as they're storing IDs
This commit is contained in:
parent
5b4c278b83
commit
2cc42a729b
2 changed files with 2 additions and 2 deletions
2
app.vue
2
app.vue
|
@ -44,7 +44,7 @@ function contextMenuHandler(e: MouseEvent) {
|
|||
//]);
|
||||
}
|
||||
|
||||
const currentTheme = settingLoad("selectedThemeUrl") ?? "dark"
|
||||
const currentTheme = settingLoad("selectedThemeId") ?? "dark"
|
||||
const baseURL = useRuntimeConfig().app.baseURL;
|
||||
|
||||
useHead({
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue