-
@suzuki Oh, interesting, you're right. They store the initial value:
if (document.body.classList.contains('dark-theme')) { localStorage.setItem('themeName', 'light-theme'); }So from thereon the site doesn't accept preference changes automatically. I'd call that an antipattern.