From 157676c5fe31988cfc11e6f38e3c703f1dc0643d Mon Sep 17 00:00:00 2001 From: liuch Date: Wed, 6 Nov 2024 20:44:42 +0300 Subject: [PATCH] Fix: SVG scaling when file extension is not lower case --- src/js/lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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