From 97d2608adfb3cc488c84a7e084f9c6d3a27bd51f Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Sun, 18 Jan 2026 18:23:49 +0100 Subject: [PATCH] fix(control): wrong url in not-dev-mode --- control/frontend/src/lib/ts/api_handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/frontend/src/lib/ts/api_handler.ts b/control/frontend/src/lib/ts/api_handler.ts index f55c19c..4698403 100755 --- a/control/frontend/src/lib/ts/api_handler.ts +++ b/control/frontend/src/lib/ts/api_handler.ts @@ -195,7 +195,7 @@ async function request_control( api_route: string, options: { method: string; headers?: Record; body?: string } ): Promise { - 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); }