summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-16 20:32:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-16 20:32:58 +0200
commit6457ef2f9d42475cf5794a6a6a697dae2db47ede (patch)
tree82a59650ee309198a6042df458652abe40fe85be
parent134a96208c1e6d86b82efe17b6deb0badfd0176a (diff)
fix typo in color scheme preference query
-rw-r--r--templates/layouts/default.html.ep2
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');