small Knockout cleanup

This commit is contained in:
Stephan Troyer
2017-07-13 12:16:29 +02:00
committed by Steve Sanderson
parent fc398d602a
commit c2a284d5b8

View File

@@ -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 {