Skip to content

Commit 7e88633

Browse files
committed
Allow status === 0 to indicate successful request
This mirrors objectURLToBlob(), which allows status 0 to indicate success (which it does for local files).
1 parent 27d4ce9 commit 7e88633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exif.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
} else {
369369
var http = new XMLHttpRequest();
370370
http.onload = function() {
371-
if (http.status == "200") {
371+
if (this.status == 200 || this.status === 0) {
372372
handleBinaryFile(http.response);
373373
} else {
374374
throw "Could not load image";

0 commit comments

Comments
 (0)