Close edge case

This commit is contained in:
Skylar Ittner 2021-01-22 19:33:43 -07:00
parent cb06dcdbfb
commit 29b5e4422e

View File

@ -33,6 +33,9 @@ function openTrackingBarcodeScanner() {
} else if (result.startsWith("http") && result.includes("#")) {
if (coderegex.test(result.split("#")[1])) {
code = result.split("#")[1];
} else {
app.dialog.alert("This app can't understand what's in that barcode.", "Error");
return;
}
} else if (coderegex.test(result)) {
code = result;