mirror of
https://github.com/fmhy/edit.git
synced 2026-01-13 07:21:08 +11:00
7 ufhfhfhf
This commit is contained in:
parent
84543b58d5
commit
781d79024f
1 changed files with 0 additions and 4 deletions
|
|
@ -60,10 +60,6 @@ export class ThemeHandler {
|
||||||
this.state.value.currentMode = prefersDark ? 'dark' : 'light'
|
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()
|
this.applyTheme()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue