fix: improve navbar

This commit is contained in:
2024-11-23 20:20:14 +01:00
parent b3c786847b
commit 66e24e48b2
5 changed files with 106 additions and 211 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ if (currentTheme === 'dark') {
document.getElementById('theme-toggle-dark-icon').classList.remove('hidden')
}
function switchTheme() {
const theme = localStorage.getItem('theme')
console.log("Switching theme from ", theme)
if (theme === 'dark') {
document.documentElement.classList.remove('dark')
@@ -25,4 +25,4 @@ function switchTheme() {
document.getElementById('theme-toggle-light-icon').classList.remove('hidden')
document.getElementById('theme-toggle-dark-icon').classList.add('hidden')
}
}
}