Skip to content

Commit 8041160

Browse files
bug fix
1 parent 42cd7b6 commit 8041160

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chat-ui-quince/src/code.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ const BACKEND_ROUTE = 'api/routes/chat/';
245245
const chat = document.getElementById('chat');
246246
const input = document.getElementById('message-input');
247247
const sendBtn = document.getElementById('send-btn');
248-
const readOutLoudBtn = document.getElementById('read-out-loud-btn');
248+
//const readOutLoudBtn = document.getElementById('read-out-loud-btn');
249+
const readOutLoudBtn = document.querySelector('.read-out-loud-btn');
250+
249251

250252
const voiceSpinner = document.getElementById("voiceSpinner");
251253

@@ -327,7 +329,7 @@ window.onload = function() {
327329
// Event listeners
328330
///////////////////////////////////////////////////
329331

330-
sendBtn.addEventListener('click', handleSend);
332+
sendBtn.addEventListener("click", handleSend);
331333

332334
input.addEventListener('keypress', function(e) {
333335
if (e.key === 'Enter' && !e.shiftKey) {

0 commit comments

Comments
 (0)