From dd2efc3d78f2dfda44f8182f9638723dcb839781 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 20 Jul 2020 17:46:49 +0530 Subject: nicer HTTP helper in preparation for better error handling --- src/util/taleruri.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/util/taleruri.ts') 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) + "/"; } -- cgit v1.2.3