From 7c4b56f432b8a6f7c4a316bdf66f5d404e340d13 Mon Sep 17 00:00:00 2001 From: saasfreelancer Date: Sat, 12 Oct 2024 12:26:36 +0500 Subject: [PATCH] fixes #394 --- src/js/justifiedGallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/justifiedGallery.js b/src/js/justifiedGallery.js index 75d5fe0a..00613160 100755 --- a/src/js/justifiedGallery.js +++ b/src/js/justifiedGallery.js @@ -692,7 +692,7 @@ JustifiedGallery.prototype.filterArray = function (a) { * Revert the image src to the default value. */ JustifiedGallery.prototype.resetImgSrc = function ($img) { - if ($img.data('jg.originalSrcLoc') === 'src') { + if ($img.data('jg.originalSrcLoc') === 'src' || $img.data('jg.originalSrcLoc') === 'data-safe-src' ) { $img.attr('src', $img.data('jg.originalSrc')); } else { $img.attr('src', '');