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