Skip to content

Commit

Permalink
Update burger-menu.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaHranovska committed Feb 14, 2024
1 parent 01eacf5 commit b394e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/burger-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
const currentPath = window.location.pathname;
const targetPage = 'favorites.html';

console.log(currentPath)

if (currentPath === '/' + targetPage) {
Array.from(favoritesButtons).forEach(button => button.classList.add('active-link'));
Array.from(homeButtons).forEach(button => button.classList.remove('active-link'));
Expand Down

0 comments on commit b394e30

Please sign in to comment.