Browse Source

Setting cross origin anonymous

The cross origin line moved into a weird line which is resulting in blocked remote sources. The line should be right after declaring hiddenImage.
pull/70/head
denizkutluay 8 years ago
parent
commit
5e8e841b49
  1. 1
      resemble.js

1
resemble.js

@ -148,6 +148,7 @@ URL: https://github.com/Huddle/Resemble.js
function loadImageData( fileData, callback ){
var fileReader;
var hiddenImage = new Image();
hiddenImage.setAttribute('crossorigin', 'anonymous');
if (!(typeof fileData === 'string'
&& fileData.length > 6

Loading…
Cancel
Save