summaryrefslogtreecommitdiffstats
path: root/g4f/gui
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js6
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)