We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 491f36d commit 4e31013Copy full SHA for 4e31013
web_src/js/features/imagediff.js
@@ -65,8 +65,9 @@ export function initImageDiff() {
65
};
66
}
67
68
- $('.image-diff').each(function() {
+ $('.image-diff:not([data-image-diff-loaded])').each(function() {
69
const $container = $(this);
70
+ $container.attr('data-image-diff-loaded', 'true');
71
72
// the container may be hidden by "viewed" checkbox, so use the parent's width for reference
73
const diffContainerWidth = Math.max($container.closest('.diff-file-box').width() - 300, 100);
0 commit comments