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 @@
- +