mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Actually remove the bit that's no longer neccessary
This commit is contained in:
parent
c879090a34
commit
29f48f25f4
@ -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 New Issue
Block a user