fix dark mode initialization & default to light theme

This commit is contained in:
axolotle 2022-10-26 15:36:25 +02:00
parent 027c2640fc
commit 263d1cb2d7
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ export default {
this.$store.commit('SET_SPINNER', 'spookycat')
}
document.documentElement.setAttribute('dark-theme', localStorage.getItem('theme')) // updates the data-theme attribute
document.documentElement.setAttribute('dark-theme', this.theme) // updates the data-theme attribute
}
}
</script>

View file

@ -13,7 +13,7 @@ export default {
fallbackLocale: localStorage.getItem('fallbackLocale'),
cache: localStorage.getItem('cache') !== 'false',
transitions: localStorage.getItem('transitions') !== 'false',
theme: localStorage.getItem('theme') !== 'false',
theme: localStorage.getItem('theme') === 'true',
experimental: localStorage.getItem('experimental') === 'true',
spinner: 'pacman',
supportedLocales: supportedLocales