From 6457ef2f9d42475cf5794a6a6a697dae2db47ede Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 16 May 2019 20:32:58 +0200 Subject: fix typo in color scheme preference query --- templates/layouts/default.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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'); -- cgit v1.2.3