fix(core): 修复Blockly screenshot插件获取图片接口执行异常
This commit is contained in:
@@ -56,6 +56,7 @@ Blockly.Screenshot.getBase64Image_ = function(image) {
|
|||||||
const href = image.getAttribute('xlink:href');
|
const href = image.getAttribute('xlink:href');
|
||||||
if (!href) {
|
if (!href) {
|
||||||
resolve();
|
resolve();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
img.src = href;
|
img.src = href;
|
||||||
img.onload = function () {
|
img.onload = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user