From 83b4bdcc8a74ac18f7ff204c8dcbe020bf78afb7 Mon Sep 17 00:00:00 2001 From: Nov4ou Date: Mon, 25 Nov 2024 15:04:04 +0800 Subject: [PATCH] Updated blog content --- _includes/mode-toggle.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/_includes/mode-toggle.html b/_includes/mode-toggle.html index 911291e..8792085 100644 --- a/_includes/mode-toggle.html +++ b/_includes/mode-toggle.html @@ -19,19 +19,19 @@ } constructor() { - // if (this.hasMode) { - // if (this.isDarkMode) { - // if (!this.isSysDarkPrefer) { - // this.setDark(); - // } - // } else { - // if (this.isSysDarkPrefer) { - // this.setLight(); - // } - // } - // } + if (this.hasMode) { + if (this.isDarkMode) { + if (!this.isSysDarkPrefer) { + this.setDark(); + } + } else { + if (this.isSysDarkPrefer) { + this.setLight(); + } + } + } - this.setDark(); + // this.setDark(); let self = this;