port bugfix to node

This commit is contained in:
ColonelParrot 2025-02-01 21:01:53 -05:00
parent f0428d79ca
commit e2af210cf2

View File

@ -80,7 +80,10 @@ class jscanify {
}
}
const maxContour = contours.get(maxContourIndex);
const maxContour =
maxContourIndex >= 0 ?
contours.get(maxContourIndex) :
null;
imgGray.delete();
imgBlur.delete();