aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-12-27 16:54:23 +0200
committerkaotisk <kaotisk@arching-kaos.org>2023-12-27 16:54:23 +0200
commit80f1cf00f2f2c4023b2066a53b51b06928d264ee (patch)
tree07eeda878f571b3b3ed10697a628b0662b84b122 /src/js
parente59538dfb7f5e8ecc1a22173bcd00a9a794a4bdb (diff)
downloadarching-kaos-web-ui-80f1cf00f2f2c4023b2066a53b51b06928d264ee.tar.gz
arching-kaos-web-ui-80f1cf00f2f2c4023b2066a53b51b06928d264ee.tar.bz2
arching-kaos-web-ui-80f1cf00f2f2c4023b2066a53b51b06928d264ee.zip
Deduplication
Diffstat (limited to 'src/js')
-rw-r--r--src/js/arching-kaos-stellar-network.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js/arching-kaos-stellar-network.js b/src/js/arching-kaos-stellar-network.js
index 3b5ddce..ee42750 100644
--- a/src/js/arching-kaos-stellar-network.js
+++ b/src/js/arching-kaos-stellar-network.js
@@ -2,9 +2,13 @@
function getNumberOfTrustlinesAndRenderThem(json){
var number = json._embedded.records[0].accounts.authorized;
var stats = document.querySelector('.stellar-network').querySelector('summary');
- var small = document.createElement("span");
+
+ if(!document.querySelector("#stellar-participants-sum")){
+ var small = document.createElement("span");
+ small.id = 'stellar-participants-sum';
+ stats.appendChild(small);
+ }
small.innerText = ' (' + number + ')';
- stats.appendChild(small);
archingKaosLog("Loading trustlines... Found "+number+"!");
progressPlaceholder.value++;
stellarParticipants=number;