fix: theme preference bug

This commit is contained in:
0xJacky 2023-01-07 12:21:50 +08:00
parent f2b2ef2560
commit 1aa8334633
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
3 changed files with 4 additions and 1 deletions

View file

@ -16,6 +16,8 @@ const callback = (media: { matches: any; }) => {
dark_mode(false)
settings.set_theme('auto')
}
} else {
dark_mode(settings.preference_theme === 'dark')
}
}