General gun fixes
This commit is contained in:
@@ -530,6 +530,7 @@
|
|||||||
peerCountEl.innerText = peerCount;
|
peerCountEl.innerText = peerCount;
|
||||||
if (peerCount < 2){
|
if (peerCount < 2){
|
||||||
document.getElementById("connectStatus").src = "static/ico/connect_ko.svg"
|
document.getElementById("connectStatus").src = "static/ico/connect_ko.svg"
|
||||||
|
gun.opt({peers: RELAYS});
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("connectStatus").src = "static/ico/connect_ok.svg"
|
document.getElementById("connectStatus").src = "static/ico/connect_ok.svg"
|
||||||
|
|
||||||
@@ -538,7 +539,7 @@
|
|||||||
getPeers();
|
getPeers();
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
getPeers();
|
getPeers();
|
||||||
}, 1000);
|
}, 5000);
|
||||||
function safeuuid(prefix = "AXLUID_") {
|
function safeuuid(prefix = "AXLUID_") {
|
||||||
return prefix + crypto.randomUUID().split("-")[4];
|
return prefix + crypto.randomUUID().split("-")[4];
|
||||||
}
|
}
|
||||||
@@ -686,10 +687,10 @@
|
|||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
ref.put(data);
|
ref.put(data);
|
||||||
}, 500);
|
}, 250);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
ref.put(data);
|
ref.put(data);
|
||||||
}, 1500);
|
}, 500);
|
||||||
}
|
}
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
betterGunPut(
|
betterGunPut(
|
||||||
|
|||||||
Reference in New Issue
Block a user