|
|
|
@ -33,6 +33,8 @@ function openGenericBarcodeScanner() {
|
|
|
|
|
} else if (trackingcoderegex.test(result)) {
|
|
|
|
|
code = result;
|
|
|
|
|
action = "track";
|
|
|
|
|
} else if (result.startsWith("https://helena.express/")) {
|
|
|
|
|
action = "hlnexurl";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (action) {
|
|
|
|
@ -49,6 +51,9 @@ function openGenericBarcodeScanner() {
|
|
|
|
|
router.navigate("/crypto?paymenturi=" + code);
|
|
|
|
|
//app.dialog.alert("Not implemented.");
|
|
|
|
|
break;
|
|
|
|
|
case "hlnexurl":
|
|
|
|
|
handleDeepLink(result);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
app.dialog.alert("This app can't understand what's in that barcode.", "Error");
|
|
|
|
|
return;
|
|
|
|
|