parent
dff1fa475b
commit
9055bf392f
@ -28,6 +28,9 @@ customElements.define('theme-switcher', class extends HTMLElement {
|
||||
} else if (this.currentTheme == 'light') {
|
||||
checkbox.checked = false
|
||||
document.body.classList.toggle('light')
|
||||
} else {
|
||||
console.log(this.preferDark)
|
||||
checkbox.checked = this.preferDark
|
||||
}
|
||||
|
||||
checkbox.addEventListener('click', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user