We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26af1d2 commit 0f53fd2Copy full SHA for 0f53fd2
src/theme/index.hbs
@@ -59,6 +59,7 @@
59
<script>
60
var path_to_root = "{{ path_to_root }}";
61
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}";
62
+ default_theme = default_theme.replace(/\W+/g, '_').toLowerCase();
63
</script>
64
65
<!-- Work around some values being stored in localStorage wrapped in quotes -->
0 commit comments