Use localstorage rather than cookies

This commit is contained in:
Zan
2025-09-15 22:17:50 +02:00
parent 9d877a1d68
commit 8c57152fe4
16 changed files with 470 additions and 162 deletions

View File

@@ -1,10 +1,10 @@
(() => {
function transformLogoutPage() {
async function transformLogoutPage() {
const theme =
cookieManager.get("themePreference") ||
await storageManager.get("themePreference", null) ||
localStorage.getItem("themePreference") ||
"light-green";
const instituteCode = cookieManager.get("schoolSubdomain");
const instituteCode = await storageManager.get("schoolSubdomain", null);
document.documentElement.setAttribute("data-theme", theme);
const newHTML = `