fix(control): wrong url in not-dev-mode

This commit is contained in:
E44
2026-01-18 18:23:49 +01:00
parent 36d2887247
commit 97d2608adf
+1 -1
View File
@@ -195,7 +195,7 @@ async function request_control(
api_route: string,
options: { method: string; headers?: Record<string, string>; body?: string }
): Promise<RequestResponse> {
const url = `http://${dev ? '127.0.0.1:8080' : window.location.origin}/api${api_route}`;
const url = `${dev ? 'http://127.0.0.1:8080' : window.location.origin}/api${api_route}`;
return await request(url, options);
}