Spaces:
Runtime error
Runtime error
dark by default
Browse files- src/app.html +1 -1
src/app.html
CHANGED
@@ -10,6 +10,6 @@
|
|
10 |
<div style="display: contents">%sveltekit.body%</div>
|
11 |
</body>
|
12 |
<script>
|
13 |
-
localStorage.theme
|
14 |
</script>
|
15 |
</html>
|
|
|
10 |
<div style="display: contents">%sveltekit.body%</div>
|
11 |
</body>
|
12 |
<script>
|
13 |
+
localStorage.theme !== 'light' && document.documentElement.classList.add('dark');
|
14 |
</script>
|
15 |
</html>
|