We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35bde96 commit a01a348Copy full SHA for a01a348
js/index.js
@@ -1436,11 +1436,9 @@ function settingsCheckbox(id, name) {
1436
});
1437
}
1438
function applyTheme(theme){
1439
-
1440
if(theme=="dark") document.documentElement.style.colorScheme = 'dark';
1441
else if(theme=="light") document.documentElement.style.colorScheme = 'light';
1442
else{
1443
1444
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
1445
console.log(prefersDark)
1446
const theme = prefersDark ? 'dark' : 'light';
0 commit comments