aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-web-ui-settings.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-03 15:21:23 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-03 15:21:23 +0200
commit8dd45fe02ef44fae11bee385d6d226c471b99d26 (patch)
tree85d67f2e318dd0f8244565f11fc8969b2d1867c6 /src/js/arching-kaos-web-ui-settings.js
parenta9a97d9495b67258c2eeab196ce860a010cff466 (diff)
downloadarching-kaos-web-ui-8dd45fe02ef44fae11bee385d6d226c471b99d26.tar.gz
arching-kaos-web-ui-8dd45fe02ef44fae11bee385d6d226c471b99d26.tar.bz2
arching-kaos-web-ui-8dd45fe02ef44fae11bee385d6d226c471b99d26.zip
Load radio api address from settings
Diffstat (limited to 'src/js/arching-kaos-web-ui-settings.js')
-rw-r--r--src/js/arching-kaos-web-ui-settings.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/js/arching-kaos-web-ui-settings.js b/src/js/arching-kaos-web-ui-settings.js
index ddee8f8..1277eea 100644
--- a/src/js/arching-kaos-web-ui-settings.js
+++ b/src/js/arching-kaos-web-ui-settings.js
@@ -80,6 +80,14 @@ var default_settings = {
],
active: 1
},
+ radio: {
+ list: [
+ 'http://127.0.0.1:8010',
+ 'http://api.radio.z.kaotisk-hund.com',
+ 'https://api.radio.arching-kaos.com'
+ ],
+ active: 2
+ },
scan: false
}
};
@@ -111,6 +119,7 @@ if (( location.origin === "http://z.kaotisk-hund.com") ||
( location.origin === "http://[fc59:6076:6299:6776:c13d:fbb2:1226:ead0]")) {
settings.ipfs.gateway.active = 1;
settings.stellar.horizon.active = 1;
+ settings.ak.radio.active = 1;
} else if ( location.origin === "http://localhost:3000" ) {
settings.ipfs.gateway.active = 2;
} else {