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.
var
1 parent 22e76ab commit 4c816a0Copy full SHA for 4c816a0
website/src/index.html
@@ -9,15 +9,15 @@
9
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
10
<base href="{base}" />
11
<script>
12
- let theme = localStorage.getItem('theme');
+ var theme = localStorage.getItem('theme');
13
if (theme === null) {
14
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
15
theme = 'theme-dark';
16
} else {
17
theme = 'theme-light';
18
}
19
20
- const html = document.querySelector('html');
+ var html = document.querySelector('html');
21
setTheme(theme);
22
function setTheme(theme) {
23
localStorage.setItem('theme', theme);
0 commit comments