diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-16 20:32:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-16 20:32:58 +0200 |
commit | 6457ef2f9d42475cf5794a6a6a697dae2db47ede (patch) | |
tree | 82a59650ee309198a6042df458652abe40fe85be | |
parent | 134a96208c1e6d86b82efe17b6deb0badfd0176a (diff) |
fix typo in color scheme preference query
-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'); |