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
|
// Convenience accessors
|
||||||
public static defaultHomeserverUrl(): string | undefined {
|
public static defaultHomeserverUrl(): string | undefined {
|
||||||
const defaultServerConfig = Config.get().default_server_config;
|
return Config.get().default_server_config["m.homeserver"].base_url;
|
||||||
if (!defaultServerConfig) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
return defaultServerConfig["m.homeserver"].base_url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static defaultServerName(): string | undefined {
|
public static defaultServerName(): string | undefined {
|
||||||
const defaultServerConfig = Config.get().default_server_config;
|
return Config.get().default_server_config["m.homeserver"].server_name;
|
||||||
if (!defaultServerConfig) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
return defaultServerConfig["m.homeserver"].server_name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public config?: ConfigOptions;
|
public config?: ConfigOptions;
|
||||||
|
|
Loading…
Reference in a new issue