hthtdf
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 14s

This commit is contained in:
x
2025-03-09 13:56:11 +01:00
parent dacd72ffb3
commit 7d8baa1da3
7 changed files with 15 additions and 67 deletions

View File

@ -15,7 +15,7 @@ const Cookie = {
};
(() => {
const acttheme = Cookie.get('theme') ?? "atmos";
const acttheme = Cookie.get('theme') ?? "w0bm";
const themecontainer = document.querySelector("li#themes > ul.dropdown-menu");
const themes = [...themecontainer.querySelectorAll("li > a")].map(t => t.innerText.toLowerCase());
if(acttheme !== document.documentElement.getAttribute("theme") && themes.includes(acttheme))
@ -32,7 +32,7 @@ const Cookie = {
document.addEventListener("keydown", e => {
if(e.target.tagName === "INPUT")
return;
const acttheme = Cookie.get('theme') ?? "atmos";
const acttheme = Cookie.get('theme') ?? "w0bm";
const themes = [...themecontainer.querySelectorAll("li > a")].map(t => t.innerText.toLowerCase());
const k = e.key;
if(k === "t") {