mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 02:35:08 +02:00
Viewer testnet error
This commit is contained in:
parent
b5dfc95c4c
commit
2739c38108
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 14 MiB After Width: | Height: | Size: 9.3 MiB |
@ -13,7 +13,7 @@ export async function callApi( path ) {
|
||||
testnet: 'https://rocketeer.fans/testnetapi'
|
||||
}
|
||||
|
||||
const querySaysTestnet = window.location.pathname.includes( 'testnet' )
|
||||
const querySaysTestnet = window.location.href.includes( 'testnet' )
|
||||
const isLocal = window.location.hostname === 'localhost'
|
||||
const chain = ( isLocal || querySaysTestnet ) ? 'testnet' : 'mainnet'
|
||||
const callPath = api[ chain ] + path
|
||||
|
Loading…
x
Reference in New Issue
Block a user