fixed 修复暗夜模式

This commit is contained in:
Vaica committed 2026-02-05 21:53:08 +08:00
1 parent 2ba64915f1
commit f658dcc767
2 files changed
+11

No files matched your search

+6
View File
@@ -67,6 +67,12 @@ window.initArtalk = function() {
var artalk = window.artalk; // Local reference
// Sync Theme Mode Immediately
var currentTheme = document.documentElement.getAttribute('data-theme');
if (typeof artalk.setDarkMode === 'function') {
artalk.setDarkMode(currentTheme === 'dark');
}
// Aggressive Config Saving Strategy
var saveConf = function() {
try {