diff options
Diffstat (limited to 'src/helpers.ts')
-rw-r--r-- | src/helpers.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/helpers.ts b/src/helpers.ts index d9b62aa22..7b9470271 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -21,10 +21,8 @@ * @author Florian Dold */ -/// <reference path="../decl/urijs/URIjs.d.ts" /> - import {AmountJson, Amounts} from "./types"; -import URI = uri.URI; +import URI = require("urijs"); export function substituteFulfillmentUrl(url: string, vars: any) { url = url.replace("${H_contract}", vars.H_contract); @@ -45,7 +43,7 @@ export function amountToPretty(amount: AmountJson): string { * See http://api.taler.net/wallet.html#general */ export function canonicalizeBaseUrl(url: string) { - let x: URI = new URI(url); + let x = new URI(url); if (!x.protocol()) { x.protocol("https"); } |