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 ee14238 commit 83b4bdcCopy full SHA for 83b4bdc
_includes/mode-toggle.html
@@ -19,19 +19,19 @@
19
}
20
21
constructor() {
22
- // if (this.hasMode) {
23
- // if (this.isDarkMode) {
24
- // if (!this.isSysDarkPrefer) {
25
- // this.setDark();
26
- // }
27
- // } else {
28
- // if (this.isSysDarkPrefer) {
29
- // this.setLight();
30
31
32
+ if (this.hasMode) {
+ if (this.isDarkMode) {
+ if (!this.isSysDarkPrefer) {
+ this.setDark();
+ }
+ } else {
+ if (this.isSysDarkPrefer) {
+ this.setLight();
33
34
- this.setDark();
+ // this.setDark();
35
36
let self = this;
37
0 commit comments