Skip to content

Commit 0f53fd2

Browse files
committed
sanitized default
1 parent 26af1d2 commit 0f53fd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/theme/index.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
<script>
6060
var path_to_root = "{{ path_to_root }}";
6161
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}";
62+
default_theme = default_theme.replace(/\W+/g, '_').toLowerCase();
6263
</script>
6364

6465
<!-- Work around some values being stored in localStorage wrapped in quotes -->

0 commit comments

Comments
 (0)