Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saas786 committed Oct 12, 2024
1 parent c8ef4d2 commit 7c4b56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/justifiedGallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
Expand Down

0 comments on commit 7c4b56f

Please sign in to comment.