tui: pass dynamic port to frontend
Frontend now receives the server port via window.__OPENCODE__.port, allowing it to connect when using a random free port instead of hardcoded 4096
This commit is contained in:
parent
58e66dd3d1
commit
86f7cc17ae
3 changed files with 9 additions and 8 deletions
|
|
@ -47,12 +47,6 @@ const platform: Platform = {
|
|||
},
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__OPENCODE__?: { updaterEnabled?: boolean }
|
||||
}
|
||||
}
|
||||
|
||||
render(() => {
|
||||
onMount(() => {
|
||||
if (window.__OPENCODE__?.updaterEnabled) runUpdater()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue