We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16033c6 commit 9fc4c43Copy full SHA for 9fc4c43
demo/app.js
@@ -12,7 +12,7 @@ export default class App extends Component {
12
this.state = {
13
currentTab: "single",
14
config: genConfig({ hairColorRandom: true }),
15
- theme: window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches || "light"
+ theme: window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && 'dark' || "light"
16
};
17
}
18
0 commit comments