diff options
author | Botond Hende <nettingman@gmail.com> | 2024-09-08 01:00:53 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-09-08 01:00:53 +0200 |
commit | 94ee809f9ec4b7a47fd8c56857eee6cd7e48bfa1 (patch) | |
tree | 8c31d3a4c056c05858f0d1fa90a46f2799174f16 /assets/js/theme.js | |
parent | 69f46bd633e3a11ca52ae669c1ccee789ed5eff4 (diff) |
added extra theme
Diffstat (limited to 'assets/js/theme.js')
-rw-r--r-- | assets/js/theme.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/theme.js b/assets/js/theme.js index ffb6d48..9f1660c 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -1,5 +1,5 @@ "use strict" -const THEME_KEY = "used-theme"; +const THEME_KEY = "data-theme"; function updateTheme() { let theme = localStorage.getItem(THEME_KEY); @@ -13,4 +13,8 @@ function setTheme(theme) { updateTheme(); } +function setThemeExtend() { + document.documentElement.setAttribute("data-extended-theme", "true") +} + updateTheme();
\ No newline at end of file |