From dca8a405085e4a182df761490269ffd4097bd021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=9B?= Date: Mon, 27 Jul 2026 14:21:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=20JSON=EF=BC=8C=E5=8F=AA=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=20PPTX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-to-ppt/background.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web-to-ppt/background.js b/web-to-ppt/background.js index 0658e43..96fec62 100644 --- a/web-to-ppt/background.js +++ b/web-to-ppt/background.js @@ -220,7 +220,7 @@ function arrayBufferToBase64(buffer) { // 消息处理 chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { - // 采集并下载 JSON(兼容旧流程) + // 采集并缓存数据(不下载 JSON,由 popup 直接转化下载 PPTX) if (message?.type === "WEB_TO_PPT_CAPTURE_START") { (async () => { const settings = normalizeSettings(message.options); @@ -229,10 +229,8 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { assertCaptureableTab(tab); const data = await captureCurrentTab(tab, settings); lastCaptureData = data; // 缓存数据 - const filename = await downloadCapture(data); return { ok: true, - filename, actualViewportWidth: data.source?.actualViewportWidth, requestedViewportWidth: data.source?.requestedViewportWidth };