This commit is contained in:
Ross
2021-11-11 22:20:35 +00:00
parent f34f76e982
commit a5bf7b6e1d
+2 -2
View File
@@ -470,7 +470,6 @@
// Probably no need to await here anymore
//await readFile(el.files[0], el);
let url = URL.createObjectURL(el.files[0])
console.log(el.files[0])
console.log(url)
@@ -483,8 +482,9 @@
imageId = "base64://" + base.split(",")[1];
imageId2 = base;
} else {
let url = URL.createObjectURL(el.files[0])
imageId = `wadouri:${url}`;
imageId2 = imageId
imageId2 = url
}
console.log(imageId)
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)