Commit 9b340d79 authored by yann300's avatar yann300

fix default theme

parent 9004e3af
...@@ -41,6 +41,7 @@ module.exports = { ...@@ -41,6 +41,7 @@ module.exports = {
else { else {
theme = themeStorage.get('theme') theme = themeStorage.get('theme')
} }
if (!theme) theme = 'light'
if (themes[theme]) { if (themes[theme]) {
document.getElementById('theme-link').setAttribute('href', themes[theme]) document.getElementById('theme-link').setAttribute('href', themes[theme])
document.documentElement.style.setProperty('--theme', themeVariable[theme]) document.documentElement.style.setProperty('--theme', themeVariable[theme])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment