mirror of https://github.com/node-red/node-red.git
Fix linting
parent
ef30e838f3
commit
2d09928718
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue