diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-12 23:30:10 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-12 23:30:10 +0200 |
commit | 122e069d914622343fa1a21c3990a2f416ea9dfe (patch) | |
tree | a824a5e12509a791cb3c47822fa3a308a0ded360 /lib/wallet/helpers.ts | |
parent | d4be3906e32ac7d9933c6030d6493f2f2152bdd9 (diff) | |
download | wallet-core-122e069d914622343fa1a21c3990a2f416ea9dfe.tar.xz |
crypto for refreshing
Diffstat (limited to 'lib/wallet/helpers.ts')
-rw-r--r-- | lib/wallet/helpers.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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 <http://www.gnu.org/licenses/> */ - /** * Smaller helper functions that do not depend * on the emscripten machinery. @@ -22,7 +21,10 @@ * @author Florian Dold */ +/// <reference path="../decl/urijs/URIjs.d.ts" /> + 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"); } |