Default to dark theme to avoid screen flashing and fix typo

This commit is contained in:
Lonami Exo
2018-12-21 10:56:40 +01:00
parent e852dccebf
commit b9d4eb5449
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class DocsWriter:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link id="style" href="{rel_css}/docs.{def_css}.css" rel="stylesheet">
<link id="style" href="{rel_css}/docs.dark.css" rel="stylesheet">
<script>
document.getElementById("style").href = "{rel_css}/docs."
+ (localStorage.getItem("theme") || "{def_css}")