From 606de4038bfa3be22a9c24cf5010f03572b87598 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 16 Oct 2021 18:40:51 -0400 Subject: [HOTFIX] Pre-select user's last theme --- scripts/theme.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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++) -- cgit v1.2.3