Skip to content

Commit d29b615

Browse files
authored
fix: websocket problems when legacy is disabled (#3759)
1 parent 2dcd670 commit d29b615

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

client/src/features/api-client-v2-compat/ApiClientV2Compat.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ const FETCH_DEFAULT = {
4040

4141
export default class ApiClientV2Compat {
4242
baseUrl: string;
43-
uiServerUrl: string;
43+
uiserverUrl: string;
4444
supportsLegacy = false;
4545

46-
constructor(baseUrl: string, uiServerUrl: string) {
46+
constructor(baseUrl: string, uiserverUrl: string) {
4747
this.baseUrl = baseUrl;
48-
this.uiServerUrl = uiServerUrl;
48+
this.uiserverUrl = uiserverUrl;
4949
}
5050

5151
async clientFetch(
@@ -96,13 +96,13 @@ export default class ApiClientV2Compat {
9696
doLogin() {
9797
// This is invoked to perform authentication.
9898
window.location.href = `${
99-
this.uiServerUrl
99+
this.uiserverUrl
100100
}/auth/login?redirect_url=${encodeURIComponent(window.location.href)}`;
101101
}
102102

103103
doLogout() {
104104
window.location.href = `${
105-
this.uiServerUrl
105+
this.uiserverUrl
106106
}/auth/logout?redirect_url=${encodeURIComponent(window.location.href)}`;
107107
}
108108

0 commit comments

Comments
 (0)