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
This commit is contained in:
MSFTserver
2017-12-14 12:08:23 -08:00
committed by GitHub
parent b5929c09d2
commit 0136a1bc92
+3 -3
View File
@@ -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)