Skip to content

Commit 9f70f91

Browse files
committed
Revert "Change DEFAULT_SERVER_URL for intranet"
This reverts commit bff1a56.
1 parent bff1a56 commit 9f70f91

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

dashboard/new-dashboard/src/configurators/ServerWithCompressConfigurator.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { dbTypeStore } from "../shared/dbTypes"
55
import { injectOrError, serverUrlObservableKey } from "../shared/injectionKeys"
66

77
export class ServerWithCompressConfigurator implements ServerConfigurator {
8-
static readonly DEFAULT_SERVER_URL = ServerWithCompressConfigurator.determineServerUrl()
9-
static readonly INTRANET_SERVER_URL = "https://ij-perf-api.labs.jb.gg"
8+
static readonly DEFAULT_SERVER_URL = "https://ij-perf.labs.jb.gg"
109

1110
private readonly observable: Observable<null>
1211
private _serverUrl: string = ServerWithCompressConfigurator.DEFAULT_SERVER_URL
@@ -27,14 +26,6 @@ export class ServerWithCompressConfigurator implements ServerConfigurator {
2726
)
2827
}
2928

30-
private static determineServerUrl(): string {
31-
if (window.location.hostname === "ij-perf-api.labs.jb.gg") {
32-
return ServerWithCompressConfigurator.INTRANET_SERVER_URL
33-
} else {
34-
return "https://ij-perf.labs.jb.gg"
35-
}
36-
}
37-
3829
get serverUrl(): string {
3930
return this._serverUrl
4031
}

0 commit comments

Comments
 (0)