Skip to content

Commit e6045ca

Browse files
committed
chore: generate
1 parent ebbb4dd commit e6045ca

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

packages/app/src/app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Loading = () => <div class="size-full flex items-center justify-center tex
3333

3434
declare global {
3535
interface Window {
36-
__OPENCODE__?: { updaterEnabled?: boolean; }
36+
__OPENCODE__?: { updaterEnabled?: boolean }
3737
}
3838
}
3939

@@ -67,13 +67,13 @@ function ServerKey(props: ParentProps) {
6767

6868
export 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()}>

packages/desktop/src/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)