Cleanup: remove dead style toggle handler, bump cache

This commit is contained in:
Clay 2026-12-03 15:22:54 -05:00
parent 796e493376
commit 39d561c292
2 changed files with 5 additions and 14 deletions

View file

@ -1,7 +1,7 @@
// public/app.js - front-end entry point. Wires state, UI, API, and event stream. // public/app.js - front-end entry point. Wires state, UI, API, and event stream.
import { api } from './js/api.js?v=33'; import { api } from './js/api.js?v=34';
import { createStream } from './js/stream.js?v=33'; import { createStream } from './js/stream.js?v=34';
import * as ui from './js/ui.js?v=33'; import * as ui from './js/ui.js?v=34';
window.addEventListener('error', (e) => { window.addEventListener('error', (e) => {
console.error('[ui] error', e.error || e.message); console.error('[ui] error', e.error || e.message);
@ -359,15 +359,6 @@ document.getElementById('logoutBtn').addEventListener('click', async () => {
loadChallenge().catch(() => {}); 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'); const messageInput = document.getElementById('messageInput');
messageInput.addEventListener('keydown', (e) => { messageInput.addEventListener('keydown', (e) => {
if (e.key === 'Enter' && !e.shiftKey) { if (e.key === 'Enter' && !e.shiftKey) {

View file

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web OSCAR Chat</title> <title>Web OSCAR Chat</title>
<link rel="stylesheet" href="/style.css?v=33"> <link rel="stylesheet" href="/style.css?v=34">
</head> </head>
<body> <body>
<div id="app"> <div id="app">
@ -98,6 +98,6 @@
</main> </main>
</div> </div>
<script type="module" src="/app.js?v=33"></script> <script type="module" src="/app.js?v=34"></script>
</body> </body>
</html> </html>