about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-07 13:00:44 -0600
committerGitHub <noreply@github.com>2023-12-07 11:00:44 -0800
commitcdc1d08267515677eea879813d248d484a9e4ad8 (patch)
tree6be3a576290102c85e2f5915ef3e6bc061665208 /src
parent17c27581b6ca972d473fef5a07a699d6a9e5ac17 (diff)
downloadvoidsky-cdc1d08267515677eea879813d248d484a9e4ad8.tar.zst
Apply color theme to HTML page itself (#2132)
Diffstat (limited to 'src')
-rw-r--r--src/state/shell/color-mode.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/shell/color-mode.tsx b/src/state/shell/color-mode.tsx
index c6a4b8a18..192b88314 100644
--- a/src/state/shell/color-mode.tsx
+++ b/src/state/shell/color-mode.tsx
@@ -23,6 +23,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
   )
 
   React.useEffect(() => {
+    updateDocument(persisted.get('colorMode')) // set on load
     return persisted.onUpdate(() => {
       setState(persisted.get('colorMode'))
       updateDocument(persisted.get('colorMode'))