Fetch 100 records (#14)

This commit is contained in:
Syed Umair 2018-10-30 08:38:33 +05:30 committed by Samar Dhwoj Acharya
parent dadc89618d
commit 4ba7536121

View File

@ -82,7 +82,7 @@ function fetchAndShow( repo ) {
repo = repo.replace('http://github.com/', ''); repo = repo.replace('http://github.com/', '');
repo = repo.replace('.git', ''); repo = repo.replace('.git', '');
fetch( `https://api.github.com/repos/${repo}/forks?sort=stargazers` ) fetch( `https://api.github.com/repos/${repo}/forks?sort=stargazers&per_page=100` )
.then( ( response ) => { .then( ( response ) => {
if ( !response.ok ) if ( !response.ok )
throw Error( response.statusText ) throw Error( response.statusText )