From 87b9734986e556a0ad9d607bf2ab520eb47f70d8 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Wed, 27 Sep 2023 16:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D'copiedIcon'=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=AE=9A=E4=B9=89BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/common.js b/themes/common.js index 150d472..bc7dc37 100644 --- a/themes/common.js +++ b/themes/common.js @@ -11,13 +11,14 @@ function gradioApp() { } -const copiedIcon = ''; -const copyIcon = ''; function addCopyButton(botElement) { // https://github.com/GaiZhenbiao/ChuanhuChatGPT/tree/main/web_assets/javascript // Copy bot button + const copiedIcon = ''; + const copyIcon = ''; + const messageBtnColumnElement = botElement.querySelector('.message-btn-row'); if (messageBtnColumnElement) { // Do something if .message-btn-column exists, for example, remove it