Skip to content

Commit ed1c917

Browse files
committed
Fixed #301
1 parent 1fde787 commit ed1c917

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jspdf.plugin.addimage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@
511511

512512
} else {
513513

514-
if (imgData.charCodeAt(0) === 0x89 &&
515-
imgData.charCodeAt(1) === 0x50 &&
516-
imgData.charCodeAt(2) === 0x4e &&
517-
imgData.charCodeAt(3) === 0x47 ) format = 'png';
514+
if (imageData.charCodeAt(0) === 0x89 &&
515+
imageData.charCodeAt(1) === 0x50 &&
516+
imageData.charCodeAt(2) === 0x4e &&
517+
imageData.charCodeAt(3) === 0x47 ) format = 'png';
518518
}
519519
}
520520
format = (format || 'JPEG').toLowerCase();

0 commit comments

Comments
 (0)