Skip to content

Commit

Permalink
Exclude .github repository from projects dropdown in navbar 0.8.12 (A…
Browse files Browse the repository at this point in the history
…nd last time imporved the lightspeed blocker)
  • Loading branch information
Voidless7125 committed Dec 16, 2024
1 parent 8595e9c commit 69e1ab6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ document.addEventListener('DOMContentLoaded', () => {
for (const user of users) {
const repos = await fetchRepositories(user);
repos.forEach(repo => {
const repoLink = document.createElement('a');
repoLink.href = repo.html_url;
repoLink.target = '_blank';
repoLink.textContent = repo.name;
projectsDropdown.appendChild(repoLink);
if (repo.name !== '.github') { // Exclude .github repository
const repoLink = document.createElement('a');
repoLink.href = repo.html_url;
repoLink.target = '_blank';
repoLink.textContent = repo.name;
projectsDropdown.appendChild(repoLink);
}
});
}
}
Expand Down

0 comments on commit 69e1ab6

Please sign in to comment.