diff --git a/dist/extensions/ext-imagelib.js b/dist/extensions/ext-imagelib.js index 5bb5eeaf..fbccecd3 100644 --- a/dist/extensions/ext-imagelib.js +++ b/dist/extensions/ext-imagelib.js @@ -266,7 +266,8 @@ var svgEditorExtension_imagelib = (function () { $('#dialog_box').hide(); type = hasName ? 'meta' : response.charAt(0); } catch (e) { - // This block is for backward compatibility (for IAN and Openclipart) + // This block is for backward compatibility (for IAN and Openclipart); + // should otherwise return if (typeof response === 'string') { var char1 = response.charAt(0); @@ -282,7 +283,6 @@ var svgEditorExtension_imagelib = (function () { type = response.charAt(0); } } - return; } var entry = void 0, diff --git a/editor/extensions/ext-imagelib.js b/editor/extensions/ext-imagelib.js index c1824137..138b92c2 100644 --- a/editor/extensions/ext-imagelib.js +++ b/editor/extensions/ext-imagelib.js @@ -106,7 +106,8 @@ export default { ? 'meta' : response.charAt(0); } catch (e) { - // This block is for backward compatibility (for IAN and Openclipart) + // This block is for backward compatibility (for IAN and Openclipart); + // should otherwise return if (typeof response === 'string') { const char1 = response.charAt(0); @@ -122,7 +123,6 @@ export default { type = response.charAt(0); } } - return; } let entry, curMeta, svgStr, imgStr;