From 250c1b994b9cf90b843a9825de6474ad57408347 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Wed, 17 Nov 2021 16:08:54 +0800 Subject: [PATCH] fix issue --- src/store/chains/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/chains/index.js b/src/store/chains/index.js index aba18098..319d60d4 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -1,7 +1,7 @@ let chains = {} 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$/) }