From 0763342f5d6feb92311214aff0b64f17643bfdf4 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 30 Aug 2022 09:30:36 +0200 Subject: [PATCH] prettier --- packages/web/editor.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index b8a8b20d..c08d3f04 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -720,10 +720,8 @@ export class Editor { dispatch({ type: "start-navigate" }); }} onThemeClick={() => { - if (localStorage.theme === 'dark') - localStorage.theme = 'light'; - else - localStorage.theme = 'dark'; + if (localStorage.theme === "dark") localStorage.theme = "light"; + else localStorage.theme = "dark"; document.documentElement.dataset.theme = localStorage.theme; }} onHomeClick={() => {