File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const Loading = () => <div class="size-full flex items-center justify-center tex
3333
3434declare global {
3535 interface Window {
36- __OPENCODE__ ?: { updaterEnabled ?: boolean ; }
36+ __OPENCODE__ ?: { updaterEnabled ?: boolean }
3737 }
3838}
3939
@@ -67,13 +67,13 @@ function ServerKey(props: ParentProps) {
6767
6868export function AppInterface ( props : { defaultUrl ?: string } ) {
6969 const defaultServerUrl = ( ) => {
70- if ( props . defaultUrl ) return props . defaultUrl ;
70+ if ( props . defaultUrl ) return props . defaultUrl
7171 if ( location . hostname . includes ( "opencode.ai" ) ) return "http://localhost:4096"
7272 if ( import . meta. env . DEV )
7373 return `http://${ import . meta. env . VITE_OPENCODE_SERVER_HOST ?? "localhost" } :${ import . meta. env . VITE_OPENCODE_SERVER_PORT ?? "4096" } `
7474
7575 return window . location . origin
76- } ;
76+ }
7777
7878 return (
7979 < ServerProvider defaultUrl = { defaultServerUrl ( ) } >
Original file line number Diff line number Diff line change @@ -282,11 +282,7 @@ render(() => {
282282 < div class = "mx-px bg-background-base border-b border-border-weak-base h-8" data-tauri-drag-region />
283283 ) }
284284 < AppBaseProviders >
285- < ServerGate >
286- { serverUrl =>
287- < AppInterface defaultUrl = { serverUrl ( ) } />
288- }
289- </ ServerGate >
285+ < ServerGate > { ( serverUrl ) => < AppInterface defaultUrl = { serverUrl ( ) } /> } </ ServerGate >
290286 </ AppBaseProviders >
291287 </ PlatformProvider >
292288 )
@@ -307,7 +303,7 @@ function ServerGate(props: { children: (url: Accessor<string>) => JSX.Element })
307303 </ div >
308304 }
309305 >
310- { serverUrl => props . children ( serverUrl ) }
306+ { ( serverUrl ) => props . children ( serverUrl ) }
311307 </ Show >
312308 )
313309}
You can’t perform that action at this time.
0 commit comments