From 2c4489917a0b86b832b2bd85c68c9c851ab119b4 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Sat, 5 Jul 2025 19:05:35 +0200 Subject: [PATCH] fix: use $fetch over fetch --- components/Settings/AppSettings/Appearance.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/Settings/AppSettings/Appearance.vue b/components/Settings/AppSettings/Appearance.vue index 82e3845..696d8b9 100644 --- a/components/Settings/AppSettings/Appearance.vue +++ b/components/Settings/AppSettings/Appearance.vue @@ -60,14 +60,11 @@ function changeTheme(id: string, url: string) { const fetchThemes = async () => { for (const theme of defaultThemes) { - const themeConfig = await fetch(`${baseURL}themes/${theme}.json`) - const themeConfigJson = await themeConfig.json() as Theme - themeConfigJson.id = theme + const themeConfig = await $fetch(`${baseURL}themes/${theme}.json`) as Theme + themeConfig.id = theme - themes.push(themeConfigJson) + themes.push(themeConfig) } - - console.log(themes) } await fetchThemes()