Skip to content

Commit 62dafdd

Browse files
committed
I'll explain when you're older! (C) whatthecommit.com
1 parent ed502dc commit 62dafdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-theme/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const theme:string = localStorage.getItem('theme');
1515
const body: HTMLElement = document.body;
1616
const defaultTheme: string = 'dark';
1717

18-
body.classList.add(theme ? theme : defaultTheme);
18+
body.classList.add(!theme ? defaultTheme : theme);
1919

2020
dark.onclick = e => {
2121
body.classList.remove('light');

0 commit comments

Comments
 (0)