pull/73/head
Zef Hemel 2022-08-30 09:30:36 +02:00
parent de84466c4e
commit 0763342f5d
1 changed files with 2 additions and 4 deletions

View File

@ -720,10 +720,8 @@ export class Editor {
dispatch({ type: "start-navigate" }); dispatch({ type: "start-navigate" });
}} }}
onThemeClick={() => { onThemeClick={() => {
if (localStorage.theme === 'dark') if (localStorage.theme === "dark") localStorage.theme = "light";
localStorage.theme = 'light'; else localStorage.theme = "dark";
else
localStorage.theme = 'dark';
document.documentElement.dataset.theme = localStorage.theme; document.documentElement.dataset.theme = localStorage.theme;
}} }}
onHomeClick={() => { onHomeClick={() => {