Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheryllium committed Jan 5, 2024
1 parent 6239d8c commit 875bb2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export default class UIManager {
let fishLink = document.createElement("a");
fishLink.href = "#journal";
fishLink.innerText = "Go to journal";
fishLink.addEventListener("click", function () {
fishLink.addEventListener("click", function (event) {
event.stopPropagation();
this.setJournalSelected(fish);
}.bind(this));

Expand Down

0 comments on commit 875bb2e

Please sign in to comment.