From 122e069d914622343fa1a21c3990a2f416ea9dfe Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 Oct 2016 23:30:10 +0200 Subject: crypto for refreshing --- lib/wallet/helpers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/wallet/helpers.ts') diff --git a/lib/wallet/helpers.ts b/lib/wallet/helpers.ts index 5d231fe64..8f65517f7 100644 --- a/lib/wallet/helpers.ts +++ b/lib/wallet/helpers.ts @@ -14,7 +14,6 @@ TALER; see the file COPYING. If not, see */ - /** * Smaller helper functions that do not depend * on the emscripten machinery. @@ -22,7 +21,10 @@ * @author Florian Dold */ +/// + import {AmountJson} from "./types"; +import URI = uri.URI; export function substituteFulfillmentUrl(url: string, vars: any) { url = url.replace("${H_contract}", vars.H_contract); @@ -43,7 +45,7 @@ export function amountToPretty(amount: AmountJson): string { * See http://api.taler.net/wallet.html#general */ export function canonicalizeBaseUrl(url: string) { - let x = new URI(url); + let x: URI = new URI(url); if (!x.protocol()) { x.protocol("https"); } -- cgit v1.2.3