From 5e8e841b49886d3f8bdf87aafbf48d9b80434dff Mon Sep 17 00:00:00 2001 From: denizkutluay Date: Mon, 23 May 2016 23:04:34 -0400 Subject: [PATCH] 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. --- resemble.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resemble.js b/resemble.js index 8340fc5..b96356b 100644 --- a/resemble.js +++ b/resemble.js @@ -148,7 +148,8 @@ 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 && fileData.charAt(4)===':'