Skip to content

Commit 83b4bdc

Browse files
committed
Updated blog content
1 parent ee14238 commit 83b4bdc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_includes/mode-toggle.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
}
2020

2121
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-
// }
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+
}
3333

34-
this.setDark();
34+
// this.setDark();
3535

3636
let self = this;
3737

0 commit comments

Comments
 (0)