Skip to content
Browse files

Update assets/jquery.imageCache.js

  • Loading branch information...
1 parent b636282 commit 1f38b62157a2279029769aa5983c6a076f640fe4 @MarkVaughn committed Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/jquery.imageCache.js
View
2 assets/jquery.imageCache.js
@@ -42,7 +42,7 @@
var imgType = img.src.match(/\.(jpg|jpeg|png)$/i);
if (imgType && imgType.length) {
- imgType = imgType[0].toLowerCase() == 'jpg' ? 'jpeg' : imgType[0].toLowerCase();
+ imgType = imgType[1].toLowerCase() == 'jpg' ? 'jpeg' : imgType[1].toLowerCase();
} else {
throw 'Invalid image type for canvas encoder: ' + img.src;
}

0 comments on commit 1f38b62

Please sign in to comment.
Something went wrong with that request. Please try again.