pdufour commited on
Commit
d1563c4
1 Parent(s): b96cb61

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
index.js CHANGED
@@ -379,6 +379,7 @@ uploadInput.addEventListener('change', (e) => {
379
  const reader = new FileReader();
380
  reader.onload = (e2) => {
381
  currentImage = e2.target.result;
 
382
  };
383
  reader.readAsDataURL(file);
384
  });
 
379
  const reader = new FileReader();
380
  reader.onload = (e2) => {
381
  currentImage = e2.target.result;
382
+ updatePreview(currentImage);
383
  };
384
  reader.readAsDataURL(file);
385
  });