Fix linting

pull/5563/head
Nick O'Leary 2026-03-12 11:41:40 +00:00
parent ef30e838f3
commit 2d09928718
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 2 deletions

View File

@ -5183,8 +5183,8 @@ RED.view = (function() {
img.src = iconUrl;
img.onload = function() {
if (!iconUrl.match(/\.svg$/)) {
var largestEdge = Math.max(img.width,img.height);
const imgScaleFactor = 1;
const largestEdge = Math.max(img.width,img.height);
let imgScaleFactor = 1;
if (largestEdge > 30) {
imgScaleFactor = 30/largestEdge;
}