diff options
-rw-r--r-- | src/js/arching-kaos-stellar-network.js | 8 |
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; |