Skip to content

Commit

Permalink
const fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hunnisett committed Oct 25, 2019
1 parent b83457b commit 53f0d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pretty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function prettyLinkRouter(url: string, popstate: boolean = false): void {
const origUrl = url;

// Any queries?
let queries: IPrettyRouteQueries = {};
const queries: IPrettyRouteQueries = {};

const queryPos = url.search(/\?/);
if(queryPos >= 0) {
Expand All @@ -95,7 +95,7 @@ function prettyLinkRouter(url: string, popstate: boolean = false): void {
}

// Any dynamic segements?
let dynamic: IPrettyRouteDynamicSegments = {};
const dynamic: IPrettyRouteDynamicSegments = {};
const matchingDynamicRoute = Object.keys(dynamicRoutes).find((route) => {
return url.startsWith(route + "/");
});
Expand Down

0 comments on commit 53f0d84

Please sign in to comment.