mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-04-04 06:26:20 +00:00
Trim whitespace from latest handshakes value in WireGuard status update script
This commit is contained in:
@@ -166,7 +166,7 @@
|
|||||||
const peerElementId = `peer-stored-latest-handshake-${peerId}`;
|
const peerElementId = `peer-stored-latest-handshake-${peerId}`;
|
||||||
const storedHandshakeElement = document.getElementById(peerElementId);
|
const storedHandshakeElement = document.getElementById(peerElementId);
|
||||||
if (peerInfo['latest-handshakes'] === '0' && storedHandshakeElement) {
|
if (peerInfo['latest-handshakes'] === '0' && storedHandshakeElement) {
|
||||||
peerInfo['latest-handshakes'] = storedHandshakeElement.textContent;
|
peerInfo['latest-handshakes'] = storedHandshakeElement.textContent.trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user