Skip to content

Commit 9fc4c43

Browse files
committed
demo: fix default prefers-color-scheme
1 parent 16033c6 commit 9fc4c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class App extends Component {
1212
this.state = {
1313
currentTab: "single",
1414
config: genConfig({ hairColorRandom: true }),
15-
theme: window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches || "light"
15+
theme: window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && 'dark' || "light"
1616
};
1717
}
1818

0 commit comments

Comments
 (0)