From daf2b6ac3bf607f4f2e279545125c7559edb450e Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 11 Feb 2024 03:33:02 +0100 Subject: Fix convert image to jpg in Bing Fix display upload image in GUI --- g4f/gui/client/js/chat.v1.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'g4f/gui/client') diff --git a/g4f/gui/client/js/chat.v1.js b/g4f/gui/client/js/chat.v1.js index 4b2f1c1a..a925572a 100644 --- a/g4f/gui/client/js/chat.v1.js +++ b/g4f/gui/client/js/chat.v1.js @@ -677,7 +677,7 @@ observer.observe(message_input, { attributes: true }); } document.getElementById("version_text").innerHTML = text })() -for (el of [imageInput, cameraInput]) { +for (const el of [imageInput, cameraInput]) { console.log(el.files); el.addEventListener('click', async () => { el.value = ''; @@ -690,7 +690,6 @@ for (el of [imageInput, cameraInput]) { const reader = new FileReader(); reader.addEventListener('load', (event) => { el.dataset.src = event.target.result; - console.log(el.dataset.src); }); reader.readAsDataURL(el.files[0]); } -- cgit v1.2.3