返回提交历史
Modified
g4f/gui/client/static/js/chat.v1.js
+4
-1
XFEstudio/gpt4free
Update chat.v1.js
8d010d89
代码差异
1 个文件
+4
-1
@@ -115,7 +115,10 @@ const register_message_buttons = async () => {
115
115
const message_el = el.parentElement.parentElement.parentElement;
116
116
const copyText = await get_message(window.conversation_id, message_el.dataset.index);
117
117
118
try {
118
try {
119
if (!navigator.clipboard) {
120
throw new Error("navigator.clipboard: Clipboard API unavailable.");
121
}
119
122
await navigator.clipboard.writeText(copyText);
120
123
} catch (e) {
121
124
console.error(e);