summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-10-16 18:40:51 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-10-16 18:40:51 -0400
commit606de4038bfa3be22a9c24cf5010f03572b87598 (patch)
tree67ec4b8ad4ee222eacee9de685929294bb131747 /scripts
parentb8c91f08adc7bdb0095fb61a59bc03f0d568f478 (diff)
[HOTFIX] Pre-select user's last theme
Diffstat (limited to 'scripts')
-rw-r--r--scripts/theme.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/theme.js b/scripts/theme.js
index 886a3a1..78f0149 100644
--- a/scripts/theme.js
+++ b/scripts/theme.js
@@ -40,6 +40,10 @@ class Theme{
Theme.theme.setAttribute("href", sheet + "?v=" + Date.now());
}
+ static get() {
+ return Cookies.getCookie("theme");
+ }
+
static setUserThemes() {
let out = "";
for (let i = 0; i < this.UserThemes[0].length; i++)