7 ufhfhfhf

This commit is contained in:
Samidy 2025-12-08 20:16:10 +03:00
parent 84543b58d5
commit 781d79024f

View file

@ -60,10 +60,6 @@ export class ThemeHandler {
this.state.value.currentMode = prefersDark ? 'dark' : 'light'
}
// if the saved mode is not 'dark' and the user refreshes the page, set it to the system preference
if (this.state.value.currentMode !== 'dark' && savedMode !== 'dark') {
this.state.value.currentMode = prefersDark ? 'dark' : 'light'
}
this.applyTheme()