From 0136a1bc9260412012050e9303cd03b37f0526f6 Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Thu, 14 Dec 2017 12:08:23 -0800 Subject: [PATCH] fix issue with go button nt oworking properly this also causes you to hit an api limit so maybe we could add a rate limit to send so many requests cause im blocked :P --- src/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/main.js b/src/js/main.js index 7496874..603a7be 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -175,7 +175,7 @@ function refresh() { let total = countdown * 1 $("#go").prop('disabled', true); $("#go").text('' + countdown) - if (!localStorage['gh-data']) + if (!localStorage['gh-data']) { promises = Promise.all(Object.keys(coins).map(coin => { var url = coins[coin] // TODO(mjc) if its a user, list repos @@ -229,9 +229,9 @@ function refresh() { localStorage['gh-data2'] = JSON.stringify(data) return data }) - else +} else { promises = Promise.resolve(JSON.parse(localStorage['gh-data'])) - + } promises.then(data => { // data = parseDates(data) data = fillAll(data, columns)