mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-08-14 02:27:35 -07:00
style: lint files
This commit is contained in:
parent
504ce7f4b1
commit
51733497f6
6 changed files with 61 additions and 67 deletions
|
@ -37,19 +37,15 @@ async function getMemberAdditionalData(data) {
|
|||
let peerData = {};
|
||||
if (peer) {
|
||||
peerData.latency = peer.latency;
|
||||
if (peer.latency !== -1)
|
||||
peerData.online = 1;
|
||||
if (peer.latency == -1)
|
||||
peerData.online = 2;
|
||||
if (peer.latency !== -1) peerData.online = 1;
|
||||
if (peer.latency == -1) peerData.online = 2;
|
||||
peerData.clientVersion = peer.version;
|
||||
if (peer.paths[0]) {
|
||||
peerData.lastOnline = peer.paths[0].lastReceive;
|
||||
peerData.physicalAddress = peer.paths[0].address.split("/")[0];
|
||||
peerData.physicalPort = peer.paths[0].address.split("/")[1];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
peerData.online = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue