diff --git a/src/common/js/commonJS.js b/src/common/js/commonJS.js index bcdb378..0d438fa 100644 --- a/src/common/js/commonJS.js +++ b/src/common/js/commonJS.js @@ -677,7 +677,7 @@ str = str.replace(regex, function (match, content, offset, fullString) { }); mammoth.convertToHtml({ arrayBuffer }, { convertImage: mammoth.images.inline(async function (image) { - console.log('image at line 163:', image) + const contentType = image.contentType.toLowerCase(); const allowedTypes = ['image/jpeg', 'image/jpg', 'image/png']; if (!allowedTypes.includes(contentType)) {