Skip to content

Commit 2b1bf2f

Browse files
committed
Check for DataView on the global object.
1 parent 98de525 commit 2b1bf2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/load-image-meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
// 256 KiB should contain all EXIF/ICC/IPTC segments:
5959
var maxMetaDataSize = options.maxMetaDataSize || 262144
6060
var noMetaData = !(
61-
typeof DataView !== 'undefined' &&
61+
loadImage.global.DataView &&
6262
file &&
6363
file.size >= 12 &&
6464
file.type === 'image/jpeg' &&

0 commit comments

Comments
 (0)