mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
fix the darkmode AGAIN
This commit is contained in:
parent
8aecb235e9
commit
6f6a69c6de
1 changed files with 0 additions and 2 deletions
|
|
@ -26,11 +26,9 @@ export default function App() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (localStorage.getItem("pk-darkmode")) {
|
if (localStorage.getItem("pk-darkmode")) {
|
||||||
localStorage.removeItem("pk-darkmode");
|
|
||||||
document.body.classList.add('dark-mode')
|
document.body.classList.add('dark-mode')
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
localStorage.setItem("pk-darkmode", "true");
|
|
||||||
document.body.classList.remove('dark-mode')
|
document.body.classList.remove('dark-mode')
|
||||||
}
|
}
|
||||||
forceUpdate();
|
forceUpdate();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue