From 4cdb73a60ded39f4a98849d00ee2eabf7b7a0e63 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Sat, 2 Dec 2023 12:36:42 +0100 Subject: [PATCH] Fixed error in address for configuration --- client/src/server/servermanager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/server/servermanager.ts b/client/src/server/servermanager.ts index 1bfc9bf8..13b27566 100644 --- a/client/src/server/servermanager.ts +++ b/client/src/server/servermanager.ts @@ -105,7 +105,7 @@ export class ServerManager { getConfig(callback: CallableFunction) { var xmlHttp = new XMLHttpRequest(); - xmlHttp.open("GET", window.location.href + "config", true); + xmlHttp.open("GET", window.location.href.split('?')[0] + "config", true); xmlHttp.onload = function (e) { var data = JSON.parse(xmlHttp.responseText); callback(data);