Skip to content

Commit

Permalink
Ignore prefers-color-scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Dec 21, 2024
1 parent d4d56f8 commit 5c90909
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
<!-- Provide site root to javascript -->
<script>
var path_to_root = "{{ path_to_root }}";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}";
// This forces users into dark theme
// var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}";
var default_theme = "{{ default_theme }}";
</script>

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

0 comments on commit 5c90909

Please sign in to comment.