Merge pull request #3166 from jnhyperion/main

optimize remote config url
This commit is contained in:
Nate Sesti 2024-12-03 21:16:03 -08:00 • committed by GitHub
commit fe4000a8b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ export class ContinueServerClient implements IContinueServerClient {
this.url =
typeof serverUrl !== "string" || serverUrl === ""
? undefined
: new URL(serverUrl);
: new URL(serverUrl.endsWith("/") ? serverUrl : `${serverUrl}/`);
} catch (e) {
console.warn("Invalid Continue server url", e);
this.url = undefined;