Skip to content

Commit 20a165a

Browse files
Fix unnecessary change
1 parent 0bb97cd commit 20a165a

File tree

1 file changed

+3
-4
lines changed
  • EssentialCSharp.Web/wwwroot/js

1 file changed

+3
-4
lines changed

EssentialCSharp.Web/wwwroot/js/site.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ const completedFeaturesList = [
8080
function findCurrentPage(path, items) {
8181
for (const item of items) {
8282
const itemPath = [item, ...path];
83-
if (window.location.href.endsWith("/" + item.href)) {
84-
return itemPath;
85-
}
86-
if (window.location.href.endsWith("/" + item.key)) {
83+
if (window.location.href.endsWith("/" + item.href) ||
84+
window.location.href.endsWith("/" + item.key)
85+
) {
8786
return itemPath;
8887
}
8988

0 commit comments

Comments
 (0)