fix: theme toggle double-click bug - remove duplicate listener

This commit is contained in:
2026-07-25 18:15:06 +08:00
parent 858a5b4b93
commit 3822f85b95
2 changed files with 1 additions and 13 deletions
-4
View File
@@ -4,10 +4,6 @@ const Topbar = {
init() {
this._statusEl = document.getElementById('connection-status');
document.getElementById('theme-toggle').addEventListener('click', () => {
Theme.toggle();
});
WS.on('status', (status) => {
this._statusEl.className = `status-indicator ${status}`;
this._statusEl.querySelector('.status-text').textContent =