From c6489e7af054e305899ef9cb7c9b770ac68908d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Fri, 17 Apr 2026 09:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/js/commonJS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {