From 5176c1e57b30fbcd59452457df99efe7217a8c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Mon, 12 Jan 2026 09:28:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E4=BF=AE=E5=A4=8DBlockly=20screen?= =?UTF-8?q?shot=E6=8F=92=E4=BB=B6=E8=8E=B7=E5=8F=96=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=89=A7=E8=A1=8C=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/blockly-core/plugins/screenshot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/common/blockly-core/plugins/screenshot.js b/common/blockly-core/plugins/screenshot.js index a20ebab3..a3a135b3 100644 --- a/common/blockly-core/plugins/screenshot.js +++ b/common/blockly-core/plugins/screenshot.js @@ -56,6 +56,7 @@ Blockly.Screenshot.getBase64Image_ = function(image) { const href = image.getAttribute('xlink:href'); if (!href) { resolve(); + return; } img.src = href; img.onload = function () {