fix: improve navbar
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user