Update index.js
Browse files
index.js
CHANGED
@@ -335,9 +335,9 @@ fileUpload.addEventListener('change', async function(e) {
|
|
335 |
const file = e.target.files[0];
|
336 |
if (!file) return;
|
337 |
|
338 |
-
|
339 |
const reader = new FileReader();
|
340 |
-
|
|
|
341 |
const url = e2.target.result;
|
342 |
|
343 |
const image = await RawImage.fromURL(url);
|
|
|
335 |
const file = e.target.files[0];
|
336 |
if (!file) return;
|
337 |
|
|
|
338 |
const reader = new FileReader();
|
339 |
+
|
340 |
+
reader.onload = async (e2) => {
|
341 |
const url = e2.target.result;
|
342 |
|
343 |
const image = await RawImage.fromURL(url);
|