General gun fixes

This commit is contained in:
naielv
2025-05-30 08:58:52 +02:00
parent 1883b0fe6e
commit e48c600510

View File

@@ -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(