mirror of
https://github.com/QwIT-Development/firka-extension.git
synced 2026-06-12 03:41:39 +02:00
Use localstorage rather than cookies
This commit is contained in:
@@ -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 = `
|
||||
|
||||
Reference in New Issue
Block a user