pdufour commited on
Commit
ab198d8
·
verified ·
1 Parent(s): 8e6c9d6

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -0
index.js CHANGED
@@ -334,6 +334,8 @@ example.addEventListener('click', (e) => {
334
  fileUpload.addEventListener('change', async function(e) {
335
  const file = e.target.files[0];
336
  if (!file) return;
 
 
337
 
338
  const image = await RawImage.fromURL(url);
339
  const ar = image.width / image.height;
 
334
  fileUpload.addEventListener('change', async function(e) {
335
  const file = e.target.files[0];
336
  if (!file) return;
337
+
338
+ const url = e2.target.result;
339
 
340
  const image = await RawImage.fromURL(url);
341
  const ar = image.width / image.height;