Add event listener for close button in config panel

This commit is contained in:
Tiger Ren 2025-01-07 15:12:47 +08:00
parent 28e4e07b83
commit 159653d17e
1 changed files with 7 additions and 1 deletions

View File

@ -101,3 +101,9 @@ function createStatusDisplay() {
document.body.appendChild(div); document.body.appendChild(div);
return div; return div;
} }
// Add after the existing event listeners
document.getElementById('close-config').addEventListener('click', () => {
console.log('Close button clicked');
document.getElementById('config-panel').classList.remove('open');
});