diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-20 17:46:49 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-20 17:46:49 +0530 |
commit | dd2efc3d78f2dfda44f8182f9638723dcb839781 (patch) | |
tree | 9cfbd31607f044fb80da80d8f740ae5eaa21a2f4 /src/util/taleruri.ts | |
parent | 5a8931d90320ebc8454969ea133c48b6998ad60a (diff) | |
download | wallet-core-dd2efc3d78f2dfda44f8182f9638723dcb839781.tar.xz |
nicer HTTP helper in preparation for better error handling
Diffstat (limited to 'src/util/taleruri.ts')
-rw-r--r-- | src/util/taleruri.ts | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/util/taleruri.ts b/src/util/taleruri.ts index 2eaea2846..30209d48a 100644 --- a/src/util/taleruri.ts +++ b/src/util/taleruri.ts @@ -97,15 +97,6 @@ export function classifyTalerUri(s: string): TalerUriType { return TalerUriType.Unknown; } -export function getOrderDownloadUrl( - merchantBaseUrl: string, - orderId: string, -): string { - const u = new URL("proposal", merchantBaseUrl); - u.searchParams.set("order_id", orderId); - return u.href; -} - export function parsePayUri(s: string): PayUriResult | undefined { const pfx = "taler://pay/"; if (!s.toLowerCase().startsWith(pfx)) { @@ -133,7 +124,7 @@ export function parsePayUri(s: string): PayUriResult | undefined { } if (maybePath === "-") { - maybePath = "public/"; + maybePath = ""; } else { maybePath = decodeURIComponent(maybePath) + "/"; } |