outsource auto dark mode javascript into own js file

This commit is contained in:
Lutz Reinhardt
2022-01-24 17:33:36 +01:00
parent 57066e92a6
commit d85e48916f
4 changed files with 7 additions and 10 deletions
+4
View File
@@ -0,0 +1,4 @@
let darkmode = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (darkmode) {
$(".darkmode-label").click();
}