Skip to content

Commit

Permalink
Apply default_mode to the html data-theme attribute (pydata#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
char101 authored and ivanov committed Jun 4, 2024
1 parent e14c267 commit bcf88b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{# https://github.com/pydata/pydata-sphinx-theme/pull/1045 #}
<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "{{ default_mode }}";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "{{ default_mode }}";
</script>
{{ _webpack.head_pre_assets() }}
{{ _webpack.head_pre_icons() }}
Expand Down

0 comments on commit bcf88b9

Please sign in to comment.