Skip to content

Commit

Permalink
(again) fix body background color side effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Truiteseche committed Apr 2, 2024
1 parent 8765c79 commit 3394c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Login({ keepLoggedIn, setKeepLoggedIn, A2FInfo, setRequi
if (((JSON.parse(localStorage.userSettings)[0].displayTheme) !== "dark") && (localStorage.getItem('april') === "true")) {
document.body.style.backgroundColor = "white";
} else {
document.body.style.backgroundColor = "rgb(var(--background-color-0))" ;
document.body.style.backgroundColor = "" ;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Login/LoginForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function LoginForm({ keepLoggedIn, setKeepLoggedIn, A2FInfo, setR
if (((JSON.parse(localStorage.userSettings)[0].displayTheme) !== "dark") && (sessionStorage.getItem('april') === "true")) {
document.body.setAttribute('style', 'background-color: white;')
} else {
document.body.style.backgroundColor = "rgb(var(--background-color-0))" ;
document.body.style.backgroundColor = "" ;
}
} else {
if ((document.documentElement.getAttribute('class').indexOf('dark') < 0) && (sessionStorage.getItem('april') === "true")) {
Expand Down

0 comments on commit 3394c38

Please sign in to comment.