aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/helpers.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-12 23:30:10 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-12 23:30:10 +0200
commit122e069d914622343fa1a21c3990a2f416ea9dfe (patch)
treea824a5e12509a791cb3c47822fa3a308a0ded360 /lib/wallet/helpers.ts
parentd4be3906e32ac7d9933c6030d6493f2f2152bdd9 (diff)
downloadwallet-core-122e069d914622343fa1a21c3990a2f416ea9dfe.tar.xz
crypto for refreshing
Diffstat (limited to 'lib/wallet/helpers.ts')
-rw-r--r--lib/wallet/helpers.ts6
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");
}