update frontnd
This commit is contained in:
1 parent
40ffb103ed
commit
1adafcbfb0
1 file changed
-6
@@ -1117,8 +1117,6 @@ async function handleDeleteEvent(eventId){
|
||||
}
|
||||
}
|
||||
|
||||
// ---------- settings / accessibility ----------
|
||||
|
||||
const A11Y_DEFAULTS = {
|
||||
reducedMotion: false,
|
||||
highContrast: false,
|
||||
@@ -1247,8 +1245,6 @@ async function loadAsciiArt(){
|
||||
}
|
||||
}
|
||||
|
||||
// ---------- theme ----------
|
||||
|
||||
function toggleTheme(){
|
||||
document.body.classList.toggle("dark");
|
||||
|
||||
@@ -1256,8 +1252,6 @@ function toggleTheme(){
|
||||
localStorage.setItem("theme", theme);
|
||||
}
|
||||
|
||||
// ---------- init ----------
|
||||
|
||||
let savedTheme = localStorage.getItem("theme");
|
||||
if(savedTheme === "dark"){
|
||||
document.body.classList.add("dark");
|
||||
|
||||
Reference in new issue
Block a user