Skip to content

Commit

Permalink
iva-app: Fix event listening to hash changes #TASK-7216 #TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Nov 26, 2024
1 parent 1de64cb commit 8996660
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sites/iva/iva-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ class IvaApp extends LitElement {
this.tool = "#home";

// We need to listen to hash fragment changes to update the URL
window.onhashchange = e => {
// e.preventDefault();
console.log("URL Hash changed: ", e);
window.addEventListener("hashchange", () => {
this.hashFragmentListener();
};
});

// Notifications
this.notificationManager = new NotificationManager({});
Expand Down

0 comments on commit 8996660

Please sign in to comment.