From 39d561c2927aa1135e2cf5767888ff7b00339922 Mon Sep 17 00:00:00 2001 From: Clay Date: Thu, 3 Dec 2026 15:22:54 -0500 Subject: [PATCH] Cleanup: remove dead style toggle handler, bump cache --- public/app.js | 15 +++------------ public/index.html | 4 ++-- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/public/app.js b/public/app.js index c09df1a..8876792 100644 --- a/public/app.js +++ b/public/app.js @@ -1,7 +1,7 @@ // public/app.js - front-end entry point. Wires state, UI, API, and event stream. -import { api } from './js/api.js?v=33'; -import { createStream } from './js/stream.js?v=33'; -import * as ui from './js/ui.js?v=33'; +import { api } from './js/api.js?v=34'; +import { createStream } from './js/stream.js?v=34'; +import * as ui from './js/ui.js?v=34'; window.addEventListener('error', (e) => { console.error('[ui] error', e.error || e.message); @@ -359,15 +359,6 @@ document.getElementById('logoutBtn').addEventListener('click', async () => { loadChallenge().catch(() => {}); }); -const styleToggleBtn = document.getElementById('styleToggleBtn'); -if (styleToggleBtn) { - styleToggleBtn.addEventListener('click', () => { - const next = ui.getMessageStyle() === 'classic' ? 'bubbles' : 'classic'; - ui.setMessageStyle(next); - ui.renderMessages(state); - }); -} - const messageInput = document.getElementById('messageInput'); messageInput.addEventListener('keydown', (e) => { if (e.key === 'Enter' && !e.shiftKey) { diff --git a/public/index.html b/public/index.html index 71f814a..57b570f 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ Web OSCAR Chat - +
@@ -98,6 +98,6 @@
- +