Преглед изворни кода

Apply server-configured theme when user has no preference (#854)

James Read пре 5 месеци
родитељ
комит
7240eb5c57
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      frontend/resources/vue/App.vue

+ 1 - 1
frontend/resources/vue/App.vue

@@ -364,7 +364,7 @@ function applyTheme() {
     if (themePreference.value && themePreference.value !== '') {
     if (themePreference.value && themePreference.value !== '') {
         themeStyle.textContent = `@import url('/custom-webui/themes/${themePreference.value}/theme.css') layer(theme);`
         themeStyle.textContent = `@import url('/custom-webui/themes/${themePreference.value}/theme.css') layer(theme);`
     } else {
     } else {
-        themeStyle.textContent = ''
+        themeStyle.textContent = `@import url('/theme.css') layer(theme);`
     }
     }
 }
 }