Skip to content

Commit 103641c

Browse files
committed
Merge pull request blueimp#7 from royhaddad/patch-1
Added the option 'nounload'
2 parents 3202fb4 + 9821f2f commit 103641c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

load-image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
oUrl;
2525
img.onerror = callback;
2626
img.onload = function () {
27-
if (oUrl) {
27+
if (oUrl && !options.nounload) {
2828
loadImage.revokeObjectURL(oUrl);
2929
}
3030
callback(loadImage.scale(img, options));

0 commit comments

Comments
 (0)