Skip to content

Commit

Permalink
Removed odd page reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
JERR4 committed Feb 23, 2025
1 parent 3445c57 commit 28ea662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function renderHeader() {

document.getElementsByClassName("logo")[0].addEventListener("click", () => {
renderRestaurantList();
window.location.pathname = "/";
history.pushState({}, "", "/");
})
}

Expand Down

0 comments on commit 28ea662

Please sign in to comment.