Fix typo
This commit is contained in:
parent
becebab667
commit
18747bc5f9
@ -6005,7 +6005,7 @@
|
|||||||
return QR.error("" + file.name + ": Image too large (image: " + img.height + "x" + img.width + "px, max: " + QR.max_heigth + "x" + QR.max_width + "px)");
|
return QR.error("" + file.name + ": Image too large (image: " + img.height + "x" + img.width + "px, max: " + QR.max_heigth + "x" + QR.max_width + "px)");
|
||||||
}
|
}
|
||||||
if (height < QR.min_heigth || width < QR.min_heigth) {
|
if (height < QR.min_heigth || width < QR.min_heigth) {
|
||||||
return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, max: " + QR.min_heigth + "x" + QR.min_width + "px)");
|
return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, min: " + QR.min_heigth + "x" + QR.min_width + "px)");
|
||||||
}
|
}
|
||||||
return QR.handleFile(file, isSingle, max);
|
return QR.handleFile(file, isSingle, max);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -6041,7 +6041,7 @@
|
|||||||
return QR.error("" + file.name + ": Image too large (image: " + img.height + "x" + img.width + "px, max: " + QR.max_heigth + "x" + QR.max_width + "px)");
|
return QR.error("" + file.name + ": Image too large (image: " + img.height + "x" + img.width + "px, max: " + QR.max_heigth + "x" + QR.max_width + "px)");
|
||||||
}
|
}
|
||||||
if (height < QR.min_heigth || width < QR.min_heigth) {
|
if (height < QR.min_heigth || width < QR.min_heigth) {
|
||||||
return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, max: " + QR.min_heigth + "x" + QR.min_width + "px)");
|
return QR.error("" + file.name + ": Image too small (image: " + img.height + "x" + img.width + "px, min: " + QR.min_heigth + "x" + QR.min_width + "px)");
|
||||||
}
|
}
|
||||||
return QR.handleFile(file, isSingle, max);
|
return QR.handleFile(file, isSingle, max);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -363,7 +363,7 @@ QR =
|
|||||||
img.onload = =>
|
img.onload = =>
|
||||||
{height, width} = img
|
{height, width} = img
|
||||||
return QR.error "#{file.name}: Image too large (image: #{img.height}x#{img.width}px, max: #{QR.max_heigth}x#{QR.max_width}px)" if height > QR.max_heigth or width > QR.max_heigth
|
return QR.error "#{file.name}: Image too large (image: #{img.height}x#{img.width}px, max: #{QR.max_heigth}x#{QR.max_width}px)" if height > QR.max_heigth or width > QR.max_heigth
|
||||||
return QR.error "#{file.name}: Image too small (image: #{img.height}x#{img.width}px, max: #{QR.min_heigth}x#{QR.min_width}px)" if height < QR.min_heigth or width < QR.min_heigth
|
return QR.error "#{file.name}: Image too small (image: #{img.height}x#{img.width}px, min: #{QR.min_heigth}x#{QR.min_width}px)" if height < QR.min_heigth or width < QR.min_heigth
|
||||||
QR.handleFile file, isSingle, max
|
QR.handleFile file, isSingle, max
|
||||||
img.src = URL.createObjectURL file
|
img.src = URL.createObjectURL file
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user