Skip to content

Commit 57d9469

Browse files
committed
Support using File objects in non-DOM environments
#480
1 parent 7be4a35 commit 57d9469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exif-reader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function requireNodeFs() {
161161
}
162162

163163
function isBrowserFileObject(data) {
164-
return (typeof window !== 'undefined') && (typeof File !== 'undefined') && (data instanceof File);
164+
return (typeof File !== 'undefined') && (data instanceof File);
165165
}
166166

167167
function loadFileObject(file) {

0 commit comments

Comments
 (0)