diff --git a/src/js/lightbox.js b/src/js/lightbox.js index 07d2366..c9b85f4 100644 --- a/src/js/lightbox.js +++ b/src/js/lightbox.js @@ -277,7 +277,7 @@ Lightbox.prototype.changeImage = function(imageNumber) { var self = this; var filename = this.album[imageNumber].link; - var filetype = filename.split('.').slice(-1)[0]; + var filetype = filename.split('.').slice(-1)[0].toLowerCase(); var $image = this.$lightbox.find('.lb-image'); // Disable keyboard nav during transitions