1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

Merge pull request #29 from bkram/Bkram/ping-proxy-fix

Make ping relative, so it works on proxied servers
This commit is contained in:
Marek Farkaš
2024-02-14 12:40:53 +01:00
committed by GitHub

View File

@@ -210,7 +210,7 @@ function getServerTime() {
function sendPingRequest() {
const startTime = new Date().getTime();
fetch('/ping')
fetch('./ping')
.then(response => {
const endTime = new Date().getTime();
const pingTime = endTime - startTime;