pdufour commited on
Commit
55fd388
1 Parent(s): f18b0ff

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
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
- reader.onload = (e2) => {
 
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);