From b36a50bc88af5a8a9f14529a85fe9e261fe5bac1 Mon Sep 17 00:00:00 2001 From: Dmitry Perchanov Date: Tue, 24 Sep 2024 11:02:52 +0300 Subject: [PATCH] templates: index.js: metrics url for fqdn Signed-off-by: Dmitry Perchanov --- templates/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/index.js b/templates/index.js index 035c2f3..6061dbf 100644 --- a/templates/index.js +++ b/templates/index.js @@ -1,3 +1,5 @@ +const KASPA_NG_URL = 'https://kaspa-ng.org/'; + document.addEventListener('DOMContentLoaded', () => { window.resolver = { sort : "network", @@ -162,6 +164,7 @@ function render() { let peers_ = pad(peers.toLocaleString(),4); let clients_ = pad(clients.toLocaleString(),6); let capacity_ = pad(capacity.toLocaleString(),6); + fqdn = (status != "offline") ? `${fqdn}` : fqdn; el.innerHTML = `${sid}:${uid}${service}${version}${fqdn}${protocol}${encoding}${network}${status}`; if (status != "offline") { el.innerHTML += `${peers_}${clients_} / ${capacity_}${load}%`;