From 4ba753612102141c4667de9875778b7cc24095e5 Mon Sep 17 00:00:00 2001 From: Syed Umair <31096792+Syed-Umair@users.noreply.github.com> Date: Tue, 30 Oct 2018 08:38:33 +0530 Subject: [PATCH] Fetch 100 records (#14) --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 51b052f..8e4620d 100644 --- a/js/main.js +++ b/js/main.js @@ -82,7 +82,7 @@ function fetchAndShow( repo ) { repo = repo.replace('http://github.com/', ''); 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 ) => { if ( !response.ok ) throw Error( response.statusText )