Update index.js
Browse files
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 |
-
|
352 |
-
|
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 |
});
|