server: ensure frontend has correct port for PTY websocket connections (#5898)

This commit is contained in:
Ashutosh Kumar
2025-12-22 17:26:23 +05:30
committed by GitHub
parent 777dca775d
commit aa8cae4d59
2 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ const url =
new URLSearchParams(document.location.search).get("url") ||
(location.hostname.includes("opencode.ai") || location.hostname.includes("localhost")
? `http://${host}:${port}`
: "/")
: window.location.origin)
export function App() {
return (