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 --- index.html | 31 +++++++++++++++++++++++-------- scripts/theme.js | 4 ++++ 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 78a5d53..690ea47 100644 --- a/index.html +++ b/index.html @@ -58,8 +58,8 @@ 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