Skip to content

Commit 29164ff

Browse files
author
James Cryer
committed
Merge pull request #50 from benwick/master
Fix unloaded image issues, mostly in IE and Safari
2 parents 82b42a6 + fbdaa35 commit 29164ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resemble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ URL: https://github.com/Huddle/Resemble.js
167167

168168
if (typeof fileData === 'string') {
169169
hiddenImage.src = fileData;
170-
if (hiddenImage.complete) {
170+
if (hiddenImage.complete && hiddenImage.naturalWidth > 0) {
171171
hiddenImage.onload();
172172
}
173173
} else if (typeof fileData.data !== 'undefined'

0 commit comments

Comments
 (0)