server: ensure frontend has correct port for PTY websocket connections (#5898)
This commit is contained in:
parent
eebbd73346
commit
a05915ddc8
2 changed files with 23 additions and 13 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue