Merge branch 'main' into feature/audio-rendering

This commit is contained in:
evalstate
2024-12-05 19:50:21 +00:00
committed by GitHub
5 changed files with 20 additions and 20 deletions

View File

@@ -59,6 +59,7 @@ const DEFAULT_REQUEST_TIMEOUT_MSEC = 10000;
const params = new URLSearchParams(window.location.search);
const PROXY_PORT = params.get("proxyPort") ?? "3000";
const REQUEST_TIMEOUT = parseInt(params.get("timeout") ?? "") || DEFAULT_REQUEST_TIMEOUT_MSEC;
const PROXY_SERVER_URL = `http://localhost:${PROXY_PORT}`;
const App = () => {
@@ -243,7 +244,7 @@ const App = () => {
const abortController = new AbortController();
const timeoutId = setTimeout(() => {
abortController.abort("Request timed out");
}, DEFAULT_REQUEST_TIMEOUT_MSEC);
}, REQUEST_TIMEOUT);
let response;
try {