summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/js
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-23 01:47:55 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-01-23 01:47:55 +0100
commit07c944ad0a90e10e9401d34a626bbc7878ffab2a (patch)
tree05207374083d6e751cd84107259f5bd1e4d1e971 /g4f/gui/client/js
parentImprove CreateImagesBing (diff)
downloadgpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.tar
gpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.tar.gz
gpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.tar.bz2
gpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.tar.lz
gpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.tar.xz
gpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.tar.zst
gpt4free-07c944ad0a90e10e9401d34a626bbc7878ffab2a.zip
Diffstat (limited to 'g4f/gui/client/js')
-rw-r--r--g4f/gui/client/js/chat.v1.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/g4f/gui/client/js/chat.v1.js b/g4f/gui/client/js/chat.v1.js
index 8b9bc181..d62c040b 100644
--- a/g4f/gui/client/js/chat.v1.js
+++ b/g4f/gui/client/js/chat.v1.js
@@ -660,7 +660,13 @@ observer.observe(message_input, { attributes: true });
}
document.getElementById("version_text").innerHTML = text
})()
-
+imageInput.addEventListener('click', async (event) => {
+ imageInput.value = '';
+});
+fileInput.addEventListener('click', async (event) => {
+ fileInput.value = '';
+ delete fileInput.dataset.text;
+});
fileInput.addEventListener('change', async (event) => {
if (fileInput.files.length) {
type = fileInput.files[0].type;