fix issue

This commit is contained in:
liangping 2021-11-17 16:08:54 +08:00
parent 0ccfd3b79f
commit 250c1b994b

View File

@ -1,7 +1,7 @@
let chains = {} let chains = {}
let configs = require.context('../../chains/mainnet', false, /\.json$/) let configs = require.context('../../chains/mainnet', false, /\.json$/)
if (window.location.hostname.startsWith('testnet') || window.location.search.indexOf('testnet')) { if (window.location.hostname.startsWith('testnet') || window.location.search.indexOf('testnet') > -1) {
configs = require.context('../../chains/testnet', false, /\.json$/) configs = require.context('../../chains/testnet', false, /\.json$/)
} }