mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 00:39:16 +02:00
Make ping relative, so it works on proxied servers
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user