Skip to content

Commit

Permalink
chg: [website] set related tab as default.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Nov 7, 2024
1 parent 88956a4 commit e839e01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/web/templates/vuln.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,11 @@ <h5>Tags</h5>
loadSightings();
break;
default:
console.log("Not a valid day.");
openTabById("#related");
break;
}
} else {
openTabById("#related");
}
// Update the URL when a tab is clicked, for consistent behavior
document.querySelectorAll('.nav-link[data-bs-toggle="tab"]').forEach(tabLink => {
Expand Down Expand Up @@ -488,7 +491,6 @@ <h5>Tags</h5>
loadSightings();
showToast("Success", "Sighting added successfully!");
openTabById("#sightings");

}
})
.catch((error) => {
Expand Down

0 comments on commit e839e01

Please sign in to comment.