Close edge case
This commit is contained in:
parent
cb06dcdbfb
commit
29b5e4422e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user