mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 09:32:19 +00:00
fix(app): no custom url param
This commit is contained in:
parent
18cf4df6c6
commit
cbb3141130
1 changed files with 0 additions and 3 deletions
|
|
@ -38,9 +38,6 @@ declare global {
|
|||
}
|
||||
|
||||
const defaultServerUrl = iife(() => {
|
||||
const param = new URLSearchParams(document.location.search).get("url")
|
||||
if (param) return param
|
||||
|
||||
if (location.hostname.includes("opencode.ai")) return "http://localhost:4096"
|
||||
if (window.__OPENCODE__) return `http://127.0.0.1:${window.__OPENCODE__.port}`
|
||||
if (import.meta.env.DEV)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue