Actually remove the bit that's no longer neccessary
This commit is contained in:
parent
c879090a34
commit
29f48f25f4
1 changed files with 2 additions and 12 deletions
|
@ -41,21 +41,11 @@ export class Config {
|
|||
|
||||
// Convenience accessors
|
||||
public static defaultHomeserverUrl(): string | undefined {
|
||||
const defaultServerConfig = Config.get().default_server_config;
|
||||
if (!defaultServerConfig) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return defaultServerConfig["m.homeserver"].base_url;
|
||||
return Config.get().default_server_config["m.homeserver"].base_url;
|
||||
}
|
||||
|
||||
public static defaultServerName(): string | undefined {
|
||||
const defaultServerConfig = Config.get().default_server_config;
|
||||
if (!defaultServerConfig) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return defaultServerConfig["m.homeserver"].server_name;
|
||||
return Config.get().default_server_config["m.homeserver"].server_name;
|
||||
}
|
||||
|
||||
public config?: ConfigOptions;
|
||||
|
|
Loading…
Reference in a new issue