Skip to content

Commit

Permalink
Add netlify url to menu active class manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jespermhl committed May 22, 2024
1 parent 1ed5361 commit 6b3d829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/menufooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function addActiveClassToNavLinks() {
console.log(currentUrl);
currentUrl = currentUrl.replace("index.html", "");
console.log(currentUrl);
currentUrl = currentUrl.replace("simsinfo.netlify.app", "");
console.log(currentUrl);

fetch("/scripts/menulinks.json")
.then((response) => response.json())
Expand Down

0 comments on commit 6b3d829

Please sign in to comment.