diff options
author | foxfire52 <foxfire52@virgilio.it> | 2024-10-24 13:40:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 13:40:23 +0200 |
commit | c5e356a3219ae86b18bb366c47ccb0a36f8a651a (patch) | |
tree | 0c319f223aa38fea973360fdbd8920ab950bdadd /g4f/gui/client/static | |
parent | Update chat.v1.js (diff) | |
download | gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.tar gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.tar.gz gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.tar.bz2 gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.tar.lz gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.tar.xz gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.tar.zst gpt4free-c5e356a3219ae86b18bb366c47ccb0a36f8a651a.zip |
Diffstat (limited to 'g4f/gui/client/static')
-rw-r--r-- | g4f/gui/client/static/js/chat.v1.js | 6 |
1 files changed, 1 insertions, 5 deletions
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) |