diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-11-13 20:25:55 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-11-13 20:25:55 +0200 |
commit | 819fb9ca5082175f4afc595766e75dd2f045395b (patch) | |
tree | ed5bbfc6babf3fc4aa5035e9280914a6439d3f2f /src/js/arching-kaos-tools.js | |
parent | 22bdc082a3fb26144f861732a971e091718a215f (diff) | |
download | arching-kaos-web-ui-819fb9ca5082175f4afc595766e75dd2f045395b.tar.gz arching-kaos-web-ui-819fb9ca5082175f4afc595766e75dd2f045395b.tar.bz2 arching-kaos-web-ui-819fb9ca5082175f4afc595766e75dd2f045395b.zip |
Style update, refactoring with generator usage, bugfixesHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'src/js/arching-kaos-tools.js')
-rw-r--r-- | src/js/arching-kaos-tools.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js index 0e35c7f..0f62fd5 100644 --- a/src/js/arching-kaos-tools.js +++ b/src/js/arching-kaos-tools.js @@ -460,7 +460,7 @@ function crawlSchain(sblockHash){ zchainLoadingStatus[sblockHash] = {loading : "started"}; zchainsFound++; zchains[sblockHash] = []; - var url=activeSettings.localAPI+'/v0/sblock/'+sblockHash; + var url=settings.localAPI+'/v0/sblock/'+sblockHash; archingKaosLog("Fetching "+sblockHash+" sblock..."); archingKaosFetchJSON(url, sblockExpanding, [sblockHash]); archingKaosLog("Fetching "+sblockHash+" sblock... Done!"); @@ -485,21 +485,21 @@ function checkPeers(json){ function checkLocalPeers(){ archingKaosLog("🔎 Querying for peers..."); - var url=activeSettings.localAPI+'/v0/peers'; + var url=settings.ak.connect.list[settings.ak.connect.active]+'/v0/peers'; archingKaosFetchJSON(url, checkPeers); archingKaosLog("Querying for peers... Done!"); } function checkLocalNodeInfo(){ archingKaosLog("Ringing local bell..."); - var url=activeSettings.localAPI+'/v0/node_info'; + var url=settings.ak.connect.list[settings.ak.connect.active]+'/v0/node_info'; archingKaosFetchJSON(url, checkIfZchainAndProceed, ["localnode"]); archingKaosLog("Ringing local bell... Done!"); } function checkLocalSchain(){ archingKaosLog("Querying for schain..."); - var url=activeSettings.localAPI+'/v0/slatest'; + var url=settings.ak.connect.list[settings.ak.connect.active]+'/v0/slatest'; archingKaosFetchJSON(url, initCrawlSchain); archingKaosLog("Querying for schain... Done!"); } |