updates
This commit is contained in:
parent
9987b19c34
commit
9c1e8beeb0
@ -28,8 +28,6 @@ module.exports = async function imageInputFileToBase64({ imageInputFile, maxWidt
|
||||
* @description make a request to datasquirel.com
|
||||
*/
|
||||
try {
|
||||
console.log(typeof imageInputFile);
|
||||
|
||||
let imageName = imageInputFile.name.replace(/\..*/, "");
|
||||
let imageDataBase64;
|
||||
let imageSize;
|
||||
@ -73,9 +71,7 @@ module.exports = async function imageInputFileToBase64({ imageInputFile, maxWidt
|
||||
const srcEncoded = canvas.toDataURL(MIME_TYPE, QUALITY);
|
||||
|
||||
if (imagePreviewNode) {
|
||||
document.querySelectorAll(`[data-imagepreview='image']`).forEach((img) => {
|
||||
img.src = srcEncoded;
|
||||
});
|
||||
imagePreviewNode.src = srcEncoded;
|
||||
}
|
||||
|
||||
res(srcEncoded);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "datasquirel",
|
||||
"version": "1.1.33",
|
||||
"version": "1.1.34",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user