diff --git a/js/main.js b/js/main.js index 1d88e19..51b052f 100644 --- a/js/main.js +++ b/js/main.js @@ -77,6 +77,10 @@ function initDT() { } function fetchAndShow( repo ) { + + repo = repo.replace('https://github.com/', ''); + repo = repo.replace('http://github.com/', ''); + repo = repo.replace('.git', ''); fetch( `https://api.github.com/repos/${repo}/forks?sort=stargazers` ) .then( ( response ) => {