aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-12-27 17:11:14 +0200
committerkaotisk <kaotisk@arching-kaos.org>2023-12-27 17:11:14 +0200
commit256cdad97823888e546ba5d95bec713bcf6d2df6 (patch)
tree80156737c468639a22c6a497365b494397fe45c4
parentc139dbe9a318493d7aa97039e7e1fdba5b2508f1 (diff)
downloadarching-kaos-web-ui-256cdad97823888e546ba5d95bec713bcf6d2df6.tar.gz
arching-kaos-web-ui-256cdad97823888e546ba5d95bec713bcf6d2df6.tar.bz2
arching-kaos-web-ui-256cdad97823888e546ba5d95bec713bcf6d2df6.zip
URL settings magic
-rw-r--r--src/js/arching-kaos-tools.js2
-rw-r--r--src/js/arching-kaos-web-ui-settings.js2
-rw-r--r--src/js/environment-setup.js2
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";