Simplify pool frontend to single-coin mode
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 35s
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 35s
This commit is contained in:
@@ -49,10 +49,7 @@ currentPage = {
|
||||
$('#blocksTabs a').off('click')
|
||||
},
|
||||
update: function(updateKey){
|
||||
let endPoint = updateKey === parentCoin ? api : mergedApis[updateKey] ? mergedApis[updateKey].api : null
|
||||
if (endPoint) {
|
||||
top10Miners_UpdateTop10(xhrGetMiners, endPoint, updateKey)
|
||||
}
|
||||
top10Miners_UpdateTop10(xhrGetMiners, api, updateKey)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -67,4 +64,4 @@ function RunOnce() {
|
||||
|
||||
top10Miners_InitTemplate(xhrGetMiners, ranOnce)
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user