diff options
-rw-r--r-- | templates/layouts/default.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index a512314..9f858df 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -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'); |