Cleanup: remove dead style toggle handler, bump cache
This commit is contained in:
parent
796e493376
commit
39d561c292
2 changed files with 5 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Web OSCAR Chat</title>
|
||||
<link rel="stylesheet" href="/style.css?v=33">
|
||||
<link rel="stylesheet" href="/style.css?v=34">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
|
|
@ -98,6 +98,6 @@
|
|||
</main>
|
||||
</div>
|
||||
|
||||
<script type="module" src="/app.js?v=33"></script>
|
||||
<script type="module" src="/app.js?v=34"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue