summaryrefslogtreecommitdiffstats
path: root/g4f/gui/client/static
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-22 12:48:59 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-22 12:48:59 +0100
commit2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760 (patch)
treef2c1422018ec176677601ee6b8d02b29746c03fb /g4f/gui/client/static
parentMerge pull request #1729 from hlohaus/giga (diff)
downloadgpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.tar
gpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.tar.gz
gpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.tar.bz2
gpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.tar.lz
gpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.tar.xz
gpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.tar.zst
gpt4free-2ee724f93e36ecdf8ddfbbbb69f26ce7f7ba3760.zip
Diffstat (limited to '')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js
index bcef4a78..f9bc4568 100644
--- a/g4f/gui/client/static/js/chat.v1.js
+++ b/g4f/gui/client/static/js/chat.v1.js
@@ -240,26 +240,26 @@ async function add_message_chunk(message) {
}
}
-cameraInput?.addEventListener("click", (e) => {
- if (window?.pywebview) {
- e.preventDefault();
- pywebview.api.choose_file();
- }
-})
+// fileInput?.addEventListener("click", (e) => {
+// if (window?.pywebview) {
+// e.preventDefault();
+// pywebview.api.choose_file();
+// }
+// });
cameraInput?.addEventListener("click", (e) => {
if (window?.pywebview) {
e.preventDefault();
pywebview.api.take_picture();
}
-})
+});
imageInput?.addEventListener("click", (e) => {
if (window?.pywebview) {
e.preventDefault();
pywebview.api.choose_image();
}
-})
+});
const ask_gpt = async () => {
regenerate.classList.add(`regenerate-hidden`);