updated from var to let per Jeremy's suggestion
This commit is contained in:
parent
102aa56a2a
commit
548a50ae48
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ router.navigate = async function (scenario, currentRoute, optionalQuery = {}, op
|
|||
// Navigate to an external url.
|
||||
function navigateToUrl(url, optionalQuery = {}) {
|
||||
// possibly show some loading screen in the future here.
|
||||
var externalUrl = new URL(url);
|
||||
let externalUrl = new URL(url);
|
||||
|
||||
for (const queryKey in optionalQuery) {
|
||||
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
|
||||
|
|
@ -134,7 +134,7 @@ router.getNavigationMap = function (scenario, currentRoute) {
|
|||
item.maps.filter((map) => map.scenario === scenario).length > 0
|
||||
);
|
||||
|
||||
var maps = matchedQueryValue ? matchedQueryValue.map((m) => m.maps.filter((map) => map.scenario === scenario))[0] : undefined;
|
||||
let maps = matchedQueryValue ? matchedQueryValue.map((m) => m.maps.filter((map) => map.scenario === scenario))[0] : undefined;
|
||||
|
||||
return maps ? maps.filter(x => x.filter === true || x.filter === undefined)[0] : undefined;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue