summaryrefslogtreecommitdiff
path: root/assets/js/theme.js
diff options
context:
space:
mode:
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