wente
2024-10-14 7917c76b02b213a5fa805a6e2c9936167fae5cc8
web/public/SVGOrigin/Method-Draw-master/editor/extensions/imagelib/index.html
@@ -15,7 +15,7 @@
$('a').click(function() {
  var href = this.href;
  var target = window.parent;
  // Convert Non-SVG images to data URL first
  // Convert Non-SVG images to data URL first
  // (this could also have been done server-side by the library)
  if(this.href.indexOf('.svg') === -1) {
@@ -24,7 +24,7 @@
      id: href
    });
    target.postMessage(meta_str, "*");
    var img = new Image();
    img.onload = function() {
      var canvas = document.createElement("canvas");
@@ -55,7 +55,7 @@
      data = '|' + href + '|' + data;
      // This is where the magic happens!
      target.postMessage(data, "*");
    }, 'html'); // 'html' is necessary to keep returned data as a string
  }
  return false;