Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit c2a284d

Browse files
stephtrSteveSandersonMS
authored andcommitted
small Knockout cleanup
1 parent fc398d6 commit c2a284d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/KnockoutSpa/ClientApp/router.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ export class Router {
4343
$(document).on('click', 'a', this.clickEventListener);
4444

4545
// Initialize Crossroads with starting location
46-
// Need to cast history to 'any' because @types/history is out-of-date
47-
crossroads.parse((history as any).location.pathname);
46+
crossroads.parse(history.location.pathname);
4847
}
4948

5049
public link(url: string): string {

0 commit comments

Comments
 (0)