Browse Source

kmd explorer url fix

all-modes
pbca26 8 years ago
parent
commit
cbddd34c86
  1. 3
      react/src/actions/actions/nativeSyncInfo.js

3
react/src/actions/actions/nativeSyncInfo.js

@ -7,12 +7,13 @@ import {
} from '../actionCreators';
import Config from '../../config';
// TODO: use debug.log instead
export function getSyncInfoNativeKMD(skipDebug, json) {
const coin = 'KMD';
// https://www.kmd.host/
return dispatch => {
return fetch(
Config.iguanaLessMode ? 'http://kmd.explorer.supernet.org/api/status?q=getInfo' : `http://127.0.0.1:${Config.iguanaCorePort}/api/dex/getinfo?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}&symbol=${coin}`, {
Config.iguanaLessMode ? 'https://kmd.explorer.supernet.org/api/status?q=getInfo' : `http://127.0.0.1:${Config.iguanaCorePort}/api/dex/getinfo?userpass=tmpIgRPCUser@${sessionStorage.getItem('IguanaRPCAuth')}&symbol=${coin}`, {
method: 'GET',
})
.catch(function(error) {

Loading…
Cancel
Save