Hide theme switcher by default, only show it if javascript is enabled
This commit is contained in:
parent
6ad4e164af
commit
9ab3804aec
2 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,9 @@
|
|||
const themeName = localStorage.getItem('theme');
|
||||
if (themeName) {
|
||||
document.documentElement.className = themeName;
|
||||
document.getElementById('themes').value = themeName;
|
||||
const elt = document.getElementById('themes');
|
||||
elt.style.display = "block";
|
||||
elt.value = themeName;
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue