mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-02 19:00:49 +08:00
refactor(app.js): remove modal click event listener to streamline modal behavior
This commit is contained in:
7
app.js
7
app.js
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user