pdufour commited on
Commit
2cfb880
·
verified ·
1 Parent(s): 0c484c0

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -375,8 +375,8 @@ uploadInput.addEventListener('change', (e) => {
375
  if (!file) return;
376
 
377
  const reader = new FileReader();
378
- reader.onload = (e) => {
379
- currentImage = e.target.result;
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);