Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs: preselect default theme (#16098)
  • Loading branch information
harish-sethuraman committed Jul 6, 2022
1 parent 4b79612 commit 4d1ed22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/assets/js/themes.js
Expand Up @@ -16,7 +16,7 @@
dark_theme_toggle = document.getElementById('dark-theme-toggle');

// get any previously-chosen themes
var theme = window.localStorage.getItem("theme");
var theme = document.documentElement.getAttribute('data-theme');

if (theme == "light") {
enableToggle(light_theme_toggle);
Expand Down

0 comments on commit 4d1ed22

Please sign in to comment.