Skip to content

Commit 4d1ed22

Browse files
docs: preselect default theme (#16098)
1 parent 4b79612 commit 4d1ed22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/assets/js/themes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
dark_theme_toggle = document.getElementById('dark-theme-toggle');
1717

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

2121
if (theme == "light") {
2222
enableToggle(light_theme_toggle);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy