Added automatic removal of vite proxy

This commit is contained in:
Davide Passoni
2024-06-28 11:29:44 +02:00
parent 36478f26d5
commit b3f8eb96ad
6 changed files with 7 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ export class ServerManager {
getConfig(callback: CallableFunction) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", window.location.href.split('?')[0] + "config", true);
xmlHttp.open("GET", window.location.href.split('?')[0].replace("vite/", "") + "config", true);
xmlHttp.onload = function (e) {
var data = JSON.parse(xmlHttp.responseText);
callback(data);