refactor(app.js): remove modal click event listener to streamline modal behavior

This commit is contained in:
Supra4E8C
2025-11-09 17:20:02 +08:00
parent 5aff22a20b
commit d3fe186df7

7
app.js
View File

@@ -701,13 +701,6 @@ class CLIProxyManager {
closeBtn.addEventListener('click', () => this.closeModal());
}
window.addEventListener('click', (e) => {
const modal = document.getElementById('modal');
if (modal && e.target === modal) {
this.closeModal();
}
});
// 移动端菜单按钮
const mobileMenuBtn = document.getElementById('mobile-menu-btn');
const sidebarOverlay = document.getElementById('sidebar-overlay');