From 69f9e09e9e5f1bde7a31f2544f1d3b7778b7c3dd Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 23 Mar 2024 11:11:59 +0000 Subject: [PATCH] Remove jQuery `.attr` from the image diff again Missed these Signed-off-by: Yarden Shoham --- web_src/js/features/imagediff.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web_src/js/features/imagediff.js b/web_src/js/features/imagediff.js index 7b77b30ccc761..d567632f5f158 100644 --- a/web_src/js/features/imagediff.js +++ b/web_src/js/features/imagediff.js @@ -98,8 +98,10 @@ export function initImageDiff() { const text = await resp.text(); const bounds = getDefaultSvgBoundsIfUndefined(text, info.path); if (bounds) { - info.$images.attr('width', bounds.width); - info.$images.attr('height', bounds.height); + info.$images.each(function() { + this.setAttribute('width', bounds.width); + this.setAttribute('height', bounds.height); + }); hideElem(info.$boundsInfo); } }