summaryrefslogtreecommitdiff
path: root/assets/js/theme.js
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-08 01:00:53 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-08 01:00:53 +0200
commit94ee809f9ec4b7a47fd8c56857eee6cd7e48bfa1 (patch)
tree8c31d3a4c056c05858f0d1fa90a46f2799174f16 /assets/js/theme.js
parent69f46bd633e3a11ca52ae669c1ccee789ed5eff4 (diff)
added extra theme
Diffstat (limited to 'assets/js/theme.js')
-rw-r--r--assets/js/theme.js6
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