fix the darkmode AGAIN

This commit is contained in:
Spectralitree 2021-10-03 19:17:46 +02:00
parent 8aecb235e9
commit 6f6a69c6de

View File

@ -26,11 +26,9 @@ export default function App() {
useEffect(() => {
if (localStorage.getItem("pk-darkmode")) {
localStorage.removeItem("pk-darkmode");
document.body.classList.add('dark-mode')
}
else {
localStorage.setItem("pk-darkmode", "true");
document.body.classList.remove('dark-mode')
}
forceUpdate();