You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
Make ping relative, so it works on proxied servers
This commit is contained in:
@@ -210,7 +210,7 @@ function getServerTime() {
|
|||||||
function sendPingRequest() {
|
function sendPingRequest() {
|
||||||
const startTime = new Date().getTime();
|
const startTime = new Date().getTime();
|
||||||
|
|
||||||
fetch('/ping')
|
fetch('./ping')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const endTime = new Date().getTime();
|
const endTime = new Date().getTime();
|
||||||
const pingTime = endTime - startTime;
|
const pingTime = endTime - startTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user