Update index.js
Browse files
index.js
CHANGED
@@ -375,8 +375,8 @@ uploadInput.addEventListener('change', (e) => {
|
|
375 |
if (!file) return;
|
376 |
|
377 |
const reader = new FileReader();
|
378 |
-
reader.onload = (
|
379 |
-
currentImage =
|
380 |
status.textContent = promptInput.value.trim() ? 'Press Enter to analyze' : 'Add a prompt and press Enter';
|
381 |
};
|
382 |
reader.readAsDataURL(file);
|
|
|
375 |
if (!file) return;
|
376 |
|
377 |
const reader = new FileReader();
|
378 |
+
reader.onload = (e2) => {
|
379 |
+
currentImage = e2.target.result;
|
380 |
status.textContent = promptInput.value.trim() ? 'Press Enter to analyze' : 'Add a prompt and press Enter';
|
381 |
};
|
382 |
reader.readAsDataURL(file);
|