forked from LaconicNetwork/cosmos-explorer
Fix router bug
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
let chains = {}
|
||||
|
||||
const localChains = localStorage.getItem('chains')
|
||||
if (localChains) {
|
||||
chains = JSON.parse(localChains)
|
||||
}
|
||||
|
||||
const configs = require.context('.', false, /\.json$/)
|
||||
|
||||
const update = {}
|
||||
@@ -13,6 +8,13 @@ configs.keys().forEach(k => {
|
||||
update[c.chain_name] = c
|
||||
})
|
||||
|
||||
const localChains = localStorage.getItem('chains')
|
||||
if (localChains) {
|
||||
chains = JSON.parse(localChains)
|
||||
} else {
|
||||
chains = update
|
||||
}
|
||||
|
||||
Object.keys(update).forEach(key => {
|
||||
const chain = update[key]
|
||||
fetch(`${chain.api}/node_info`)
|
||||
|
||||
Reference in New Issue
Block a user