Skip to content

Commit

Permalink
Remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Comeza committed Jun 12, 2024
1 parent 083bb29 commit a159f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions liberica/src/lib/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,5 @@ export function applyTheme(themeName: ThemeName, persistent = false) {
style.setProperty("--color-" + camelToKebabCase(name), hsl);
}

if (persistent) {
saveTheme(themeName);
}
if (persistent) saveTheme(themeName);
}
6 changes: 1 addition & 5 deletions liberica/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ i18n.use(LanguageDetector)
e instanceof Error && console.error("i18n init error", e.message),
);

const defaultTheme = Object.keys(THEMES)[0] as ThemeName;
const setTheme = loadTheme();
console.log("Default Theme:", defaultTheme);
console.log("Set Theme:", defaultTheme);
applyTheme(setTheme ?? defaultTheme);
applyTheme(loadTheme() ?? Object.keys(THEMES)[0] as ThemeName);

const rootElement = document.getElementById("root") as HTMLElement;
ReactDOM.createRoot(rootElement).render(
Expand Down

0 comments on commit a159f6c

Please sign in to comment.