feat(ui): show <owner>/<repo> in page title (#303)

* Added dynamic page titles, the title now contains the repo url
This commit is contained in:
Amaan 2025-06-24 08:25:38 +05:30 committed by GitHub
parent e5fadce158
commit 09ffc446a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View file

@ -109,6 +109,9 @@ function handleSubmit(event, showLoading = false) {
starsElement.textContent = starCount;
}
// Set dynamic title that includes the repo name.
document.title = document.body.getElementsByTagName('title')[0].textContent;
// Scroll to results if they exist
const resultsSection = document.querySelector('[data-results]');
if (resultsSection) {