diff --git a/public/app.js b/public/app.js index ec567f1..2a7c21f 100644 --- a/public/app.js +++ b/public/app.js @@ -109,16 +109,6 @@ function renderHome() {
-
-
Channels
-
    - ${CHANNELS.map(c => ` -
  1. - ${escapeHtml(c.name)} -
  2. - `).join('')} -
-
@@ -140,11 +130,11 @@ function renderHome() { showSelectChannelBox(); - // channel click handlers (sidebar + bottom list) - main.querySelectorAll('[data-channel], [data-channel-link]').forEach(a => { + // channel click handlers (sidebar) + main.querySelectorAll('[data-channel]').forEach(a => { a.addEventListener('click', (e) => { e.preventDefault(); - const key = a.getAttribute('data-channel') || a.getAttribute('data-channel-link'); + const key = a.getAttribute('data-channel'); playChannel(key); }); });