From e48c60051068f86273a04e80bd10565ef3e1c4a1 Mon Sep 17 00:00:00 2001 From: naielv <109038805+naielv@users.noreply.github.com> Date: Fri, 30 May 2025 08:58:52 +0200 Subject: [PATCH] General gun fixes --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 44cb213..b842a37 100644 --- a/index.html +++ b/index.html @@ -530,6 +530,7 @@ peerCountEl.innerText = peerCount; if (peerCount < 2){ document.getElementById("connectStatus").src = "static/ico/connect_ko.svg" + gun.opt({peers: RELAYS}); } else { document.getElementById("connectStatus").src = "static/ico/connect_ok.svg" @@ -538,7 +539,7 @@ getPeers(); setInterval(() => { getPeers(); - }, 1000); + }, 5000); function safeuuid(prefix = "AXLUID_") { return prefix + crypto.randomUUID().split("-")[4]; } @@ -686,10 +687,10 @@ }); setTimeout(() => { ref.put(data); - }, 500); + }, 250); setTimeout(() => { ref.put(data); - }, 1500); + }, 500); } setInterval(() => { betterGunPut(