Browse Source

Merge pull request #1 from benwick/benwick-patch-1

Fix unloaded image issues, mostly in IE and Safari
pull/50/head
benwick 9 years ago
parent
commit
fbdaa356df
  1. 2
      resemble.js

2
resemble.js

@ -167,7 +167,7 @@ URL: https://github.com/Huddle/Resemble.js
if (typeof fileData === 'string') {
hiddenImage.src = fileData;
if (hiddenImage.complete) {
if (hiddenImage.complete && hiddenImage.naturalWidth > 0) {
hiddenImage.onload();
}
} else if (typeof fileData.data !== 'undefined'

Loading…
Cancel
Save