pdufour commited on
Commit
128b034
1 Parent(s): 76ac858

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -4
index.js CHANGED
@@ -348,10 +348,8 @@ fileUpload.addEventListener('change', async function(e) {
348
  const reader = new FileReader();
349
 
350
  reader.onload = async (e2) => {
351
- reader.onload = function() {
352
- updatePreview(e2.target.result);
353
- // parse(e2.target.result)
354
- }
355
  }
356
  reader.readAsDataURL(file);
357
  });
 
348
  const reader = new FileReader();
349
 
350
  reader.onload = async (e2) => {
351
+ updatePreview(e2.target.result);
352
+ // parse(e2.target.result)
 
 
353
  }
354
  reader.readAsDataURL(file);
355
  });