From c2a284d5b8e2a42514ca9b55161bd3499c28fc65 Mon Sep 17 00:00:00 2001 From: Stephan Troyer Date: Thu, 13 Jul 2017 12:16:29 +0200 Subject: [PATCH] small Knockout cleanup --- templates/KnockoutSpa/ClientApp/router.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/KnockoutSpa/ClientApp/router.ts b/templates/KnockoutSpa/ClientApp/router.ts index 6131750..eeb1b40 100644 --- a/templates/KnockoutSpa/ClientApp/router.ts +++ b/templates/KnockoutSpa/ClientApp/router.ts @@ -43,8 +43,7 @@ export class Router { $(document).on('click', 'a', this.clickEventListener); // Initialize Crossroads with starting location - // Need to cast history to 'any' because @types/history is out-of-date - crossroads.parse((history as any).location.pathname); + crossroads.parse(history.location.pathname); } public link(url: string): string {