Skip to content

Commit

Permalink
chore(website): tweaks (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope authored Mar 3, 2023
1 parent 6fcc40b commit 79ce1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/website/components/ThemeButton/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function (props: { defaultTheme: "auto" | "dark" | "light" }) {
useLayoutEffect(() => {
if (!current.hasInit) {
current.hasInit = true;
if (!!!localStorage.getItem("theme")) {
if (!localStorage.getItem("theme")) {
// 第一次用默认的
setTheme(props.defaultTheme);
clearTimer();
Expand Down

0 comments on commit 79ce1f9

Please sign in to comment.