diff --git a/README.md b/README.md index 1688743..6e3ba87 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ This project was inspired by [Mastowall](https://github.com/rstockm/mastowall), ## License - Copyright (C) 2023 Marcel Hellkamp + Copyright (C) 2024 Marcel Hellkamp Copyright (C) 2023 Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen This program is free software: you can redistribute it and/or modify diff --git a/src/App.vue b/src/App.vue index f0c787b..21fad69 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,11 +65,11 @@ onUpdated(fixLayout) watch([useWindowSize().width, config, allPosts], fixLayout, { deep: true }) // Watch for a theme changes -const isDarkPrefered = usePreferredDark() +const isDarkPreferred = usePreferredDark() const actualTheme = computed(() => { var theme = config.value?.theme if (!theme || theme === "auto") - theme = isDarkPrefered.value ? "dark" : "light" + theme = isDarkPreferred.value ? "dark" : "light" return theme }) watch(actualTheme, () => { diff --git a/src/components/ConfigModal.vue b/src/components/ConfigModal.vue index 6eef30d..d7578e9 100644 --- a/src/components/ConfigModal.vue +++ b/src/components/ConfigModal.vue @@ -1,5 +1,5 @@