diff options
| author | adamelmore <[email protected]> | 2026-01-26 06:38:20 -0600 |
|---|---|---|
| committer | adamelmore <[email protected]> | 2026-01-26 08:15:00 -0600 |
| commit | 0d651eab3b1c3ce8b55fe5d70f1e348c4b9753df (patch) | |
| tree | 05981459091af3d132f4c03f955d315899a34afb /packages/app/src/context | |
| parent | 0edd304f4219da30c37e58eea0165ca0d675ac4c (diff) | |
| download | opencode-0d651eab3b1c3ce8b55fe5d70f1e348c4b9753df.tar.gz opencode-0d651eab3b1c3ce8b55fe5d70f1e348c4b9753df.zip | |
feat(app): default servers on web
Diffstat (limited to 'packages/app/src/context')
| -rw-r--r-- | packages/app/src/context/platform.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/app/src/context/platform.tsx b/packages/app/src/context/platform.tsx index 89056b2c8..b97f70fea 100644 --- a/packages/app/src/context/platform.tsx +++ b/packages/app/src/context/platform.tsx @@ -41,11 +41,11 @@ export type Platform = { /** Fetch override */ fetch?: typeof fetch - /** Get the configured default server URL (desktop only) */ - getDefaultServerUrl?(): Promise<string | null> + /** Get the configured default server URL (platform-specific) */ + getDefaultServerUrl?(): Promise<string | null> | string | null - /** Set the default server URL to use on app startup (desktop only) */ - setDefaultServerUrl?(url: string | null): Promise<void> + /** Set the default server URL to use on app startup (platform-specific) */ + setDefaultServerUrl?(url: string | null): Promise<void> | void /** Parse markdown to HTML using native parser (desktop only, returns unprocessed code blocks) */ parseMarkdown?(markdown: string): Promise<string> |
