Skip to content

Commit

Permalink
fix reading dark mode for realsies
Browse files Browse the repository at this point in the history
  • Loading branch information
RheingoldRiver committed Oct 25, 2023
1 parent abfbce7 commit 2e0df15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AppStateProvider/AppStateProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function AppStateProvider({ children }: { children: ReactNode })
});
const [darkMode, setDarkMode] = useState<boolean>(() => {
return (
(window.localStorage.getItem("copy") || "false") === "true" ||
(window.localStorage.getItem("theme") || "false") === "true" ||
!!window.matchMedia("(prefers-color-scheme: dark)").matches
);
});
Expand Down

0 comments on commit 2e0df15

Please sign in to comment.