返回提交历史
Modified
g4f/gui/client/static/js/chat.v1.js
+1
-5
XFEstudio/gpt4free
Update chat.v1.js
c5e356a3
代码差异
1 个文件
+1
-5
@@ -59,7 +59,7 @@ function filter_message(text) {
59
59
60
60
function fallback_copy (text) {
61
61
console.warn("Entering fallback_copy...")
62
var textBox = document.createElement("textbox");
62
var textBox = document.createElement("textarea");
63
63
textBox.value = text; // Avoid scrolling to bottom
64
64
textBox.style.top = "0";
65
65
textBox.style.left = "0";
@@ -115,11 +115,7 @@ const register_message_buttons = async () => {
115
115
el.dataset.click = "true";
116
116
el.addEventListener("click", async () => {
117
117
const message_el = el.parentElement.parentElement.parentElement;
118
try {
119
118
const copyText = await get_message(window.conversation_id, message_el.dataset.index);
120
} catch(e) {
121
console.error(e);
122
};
123
119
124
120
try {
125
121
console.warn("copyText type: ", typeof copyText)