Browse Source

Merge pull request #20 from bobylito/master

Add support for cross origin
pull/21/head
James Cryer 11 years ago
parent
commit
5ce379b34e
  1. 3
      resemble.js

3
resemble.js

@ -108,6 +108,7 @@ URL: https://github.com/Huddle/Resemble.js
function loadImageData( fileData, callback ){ function loadImageData( fileData, callback ){
var fileReader; var fileReader;
var hiddenImage = new Image(); var hiddenImage = new Image();
hiddenImage.setAttribute("crossOrigin", "crossOrigin");
hiddenImage.onload = function() { hiddenImage.onload = function() {
@ -597,4 +598,4 @@ URL: https://github.com/Huddle/Resemble.js
return this; return this;
}; };
}(this)); }(this));

Loading…
Cancel
Save