|
|
@ -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]) |
|
|
|