From 9c1e8beeb0e9be1ea443c9739f4b500ee84a7032 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Tue, 23 May 2023 16:31:49 +0100 Subject: [PATCH] updates --- client/media/imageInputFileToBase64.js | 6 +----- package.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/client/media/imageInputFileToBase64.js b/client/media/imageInputFileToBase64.js index 9eb2125..b3808a2 100644 --- a/client/media/imageInputFileToBase64.js +++ b/client/media/imageInputFileToBase64.js @@ -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); diff --git a/package.json b/package.json index 7de45a6..d30cc6a 100644 --- a/package.json +++ b/package.json @@ -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": {