From 419ece4c86133fe2effa62e84ce619c00abb81a5 Mon Sep 17 00:00:00 2001 From: uvacoder Date: Thu, 29 Aug 2024 12:38:29 -0400 Subject: [PATCH] Update script.js --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 7218763..d2351da 100644 --- a/script.js +++ b/script.js @@ -8,7 +8,7 @@ const filterInput = document.querySelector('.filter-repos'); // get information from github profile const getProfile = async () => { const res = await fetch( - `https://api.github.com/users/${username}` + `https://api.github.com/users/${uvacoder}` // { // headers: { // Accept: 'application/vnd.github+json', @@ -50,7 +50,7 @@ const getRepos = async () => { let res; for (let i = 1; i <= maxPages; i++) { res = await fetch( - `https://api.github.com/users/${username}/repos?&sort=pushed&per_page=100&page=${i}` + `https://api.github.com/users/${uvacoder}/repos?&sort=pushed&per_page=100&page=${i}` // { // headers: { // Accept: 'application/vnd.github+json', @@ -70,7 +70,7 @@ getRepos(); // display list of all user's public repos const displayRepos = (repos) => { - const userHome = `https://github.com/${username}`; + const userHome = `https://github.com/${uvacoder}`; filterInput.classList.remove('hide'); for (const repo of repos) { if (repo.fork && hideForks) {