fix typo in color scheme preference query

This commit is contained in:
Daniel Friesel 2019-05-16 20:32:58 +02:00
parent 134a96208c
commit 6457ef2f9d

View file

@ -38,7 +38,7 @@
}; };
var currentTheme = localStorage.getItem('theme'); var currentTheme = localStorage.getItem('theme');
if (!otherTheme.hasOwnProperty(currentTheme)) { 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'); addStyleSheet(currentTheme, 'theme');