mirror of
https://github.com/wassname/compare_altcoin_development.git
synced 2026-06-27 16:45:06 +08:00
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:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user