From 256cdad97823888e546ba5d95bec713bcf6d2df6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Dec 2023 17:11:14 +0200 Subject: URL settings magic --- src/js/arching-kaos-tools.js | 2 +- src/js/arching-kaos-web-ui-settings.js | 2 ++ src/js/environment-setup.js | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js index 55056b3..5e2de09 100644 --- a/src/js/arching-kaos-tools.js +++ b/src/js/arching-kaos-tools.js @@ -544,7 +544,7 @@ function checkIfChainAndProceed(json){ async function ringlocalbell(){ archingKaosLog("Ringing local bell..."); - var url=localnode; + var url=activeSettings.localAPI+'/v0/akid'; archingKaosFetchJSON(url, checkIfChainAndProceed); archingKaosLog("Ringing local bell... Done!"); } diff --git a/src/js/arching-kaos-web-ui-settings.js b/src/js/arching-kaos-web-ui-settings.js index 92e27e2..c7bb26f 100644 --- a/src/js/arching-kaos-web-ui-settings.js +++ b/src/js/arching-kaos-web-ui-settings.js @@ -48,6 +48,7 @@ var default_settings = { stellarDefaultConfig: 0, zchainBasedDepthSeek: 10, zblockBasedDepthSeek: 10, + localAPI: 'http://localhost:8610' } // TODO: Make up a settings configuration page to set this up initially rather @@ -75,6 +76,7 @@ if (( location.origin === "http://z.kaotisk-hund.com") || ( location.origin === "http://gw.ipfs.z.kaotisk-hund.com") || ( location.origin === "http://[fc59:6076:6299:6776:c13d:fbb2:1226:ead0]")) { activeSettings.ipfsSelectedGatewayAddress = 1; + activeSettings.horizonSelectedAddress = 1; } else if ( location.origin === "http://localhost:3000" ) { activeSettings.ipfsSelectedGatewayAddress = 2; } else { diff --git a/src/js/environment-setup.js b/src/js/environment-setup.js index aa3448c..d0654d2 100644 --- a/src/js/environment-setup.js +++ b/src/js/environment-setup.js @@ -67,5 +67,3 @@ var lastPage = ''; var stellar_connection_status = 0; -// var localnode = "https://aka.arching-kaos.net:8610/v0/akid"; -var localnode = "http://api.aknet.z.kaotisk-hund.com/v0/akid"; -- cgit v1.2.3