clean up
This commit is contained in:
parent
aa02d0ab6f
commit
b9274a42c7
1 changed files with 480 additions and 457 deletions
|
|
@ -20,16 +20,6 @@ const isDevelopment =
|
|||
typeof location !== 'undefined' &&
|
||||
(location.hostname === 'localhost' || location.hostname === '127.0.0.1');
|
||||
|
||||
const servers: Array<string> = isDevelopment
|
||||
export const servers: Array<string> = isDevelopment
|
||||
? [`http://${location.hostname}:3000`, ...productionServers]
|
||||
: productionServers;
|
||||
|
||||
export abstract class Configuration {
|
||||
public static async initialize(): Promise<void> {
|
||||
// Kept async for call-site compatibility; the server list is static now.
|
||||
}
|
||||
|
||||
public static get servers(): Array<string> {
|
||||
return servers;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue