fix: 修复desktopNotifyEnabled变量重复声明

This commit is contained in:
2026-04-23 18:27:08 +08:00
parent a201b0356a
commit 6e5b963b3f
2 changed files with 321 additions and 2 deletions
+1 -2
View File
@@ -1701,8 +1701,7 @@ HTML_TEMPLATE = '''<!DOCTYPE html>
localStorage.setItem('systemThresholds', JSON.stringify(thresholds));
}
// 桌面通知开关
let desktopNotifyEnabled = false;
// 桌面通知开关(已在外部声明 desktopNotifyEnabled
function toggleDesktopNotify() {
const checked = document.getElementById('enableDesktopNotify').checked;