mirror of
https://github.com/derf/travelynx
synced 2024-12-12 05:52:33 +00:00
fix typo in color scheme preference query
This commit is contained in:
parent
134a96208c
commit
6457ef2f9d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
|||
};
|
||||
var currentTheme = localStorage.getItem('theme');
|
||||
if (!otherTheme.hasOwnProperty(currentTheme)) {
|
||||
currentTheme = window.matchMedia('(prefers-color-scheme: dark').matches ? 'dark.min' : 'light.min';
|
||||
currentTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark.min' : 'light.min';
|
||||
}
|
||||
addStyleSheet(currentTheme, 'theme');
|
||||
|
||||
|
|
Loading…
Reference in a new issue