From c5e356a3219ae86b18bb366c47ccb0a36f8a651a Mon Sep 17 00:00:00 2001 From: foxfire52 Date: Thu, 24 Oct 2024 13:40:23 +0200 Subject: Update chat.v1.js --- g4f/gui/client/static/js/chat.v1.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'g4f') diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index da990024..5309a04d 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -59,7 +59,7 @@ function filter_message(text) { function fallback_copy (text) { console.warn("Entering fallback_copy...") - var textBox = document.createElement("textbox"); + var textBox = document.createElement("textarea"); textBox.value = text; // Avoid scrolling to bottom textBox.style.top = "0"; textBox.style.left = "0"; @@ -115,11 +115,7 @@ const register_message_buttons = async () => { el.dataset.click = "true"; el.addEventListener("click", async () => { const message_el = el.parentElement.parentElement.parentElement; - try { const copyText = await get_message(window.conversation_id, message_el.dataset.index); - } catch(e) { - console.error(e); - }; try { console.warn("copyText type: ", typeof copyText) -- cgit v1.2.3