Permalink
Browse files

Fixed #301

  • Loading branch information...
1 parent 1fde787 commit ed1c917abb9dd6653b00c21fde9db4499a04d63a @diegocr diegocr committed Jul 22, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 jspdf.plugin.addimage.js
@@ -511,10 +511,10 @@
} else {
- if (imgData.charCodeAt(0) === 0x89 &&
- imgData.charCodeAt(1) === 0x50 &&
- imgData.charCodeAt(2) === 0x4e &&
- imgData.charCodeAt(3) === 0x47 ) format = 'png';
+ if (imageData.charCodeAt(0) === 0x89 &&
+ imageData.charCodeAt(1) === 0x50 &&
+ imageData.charCodeAt(2) === 0x4e &&
+ imageData.charCodeAt(3) === 0x47 ) format = 'png';
}
}
format = (format || 'JPEG').toLowerCase();

0 comments on commit ed1c917

Please sign in to comment.