forked from LaconicNetwork/cosmos-explorer
Merge branch 'master' of github.com:ibiding/explorer into trade
# Conflicts: # src/store/chains/index.js
This commit is contained in:
commit
5e8af7f3e5
35 files changed
+116
-6
No files matched your search
@@ -1,7 +1,16 @@
|
||||
/*
|
||||
* @Description: file
|
||||
* @Autor: dingyiming
|
||||
* @Date: 2021-11-20 15:26:27
|
||||
* @LastEditors: dingyiming
|
||||
* @LastEditTime: 2021-11-20 15:33:07
|
||||
*/
|
||||
import { isTestnet } from '@/libs/data/data'
|
||||
|
||||
let chains = {}
|
||||
|
||||
let configs = require.context('../../chains/mainnet', false, /\.json$/)
|
||||
if (window.location.hostname.startsWith('testnet') || window.location.search.indexOf('testnet') > -1) {
|
||||
if (isTestnet()) {
|
||||
configs = require.context('../../chains/testnet', false, /\.json$/)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user