Minor cleanup of getPermalinkConstructor
This commit is contained in:
parent
6656ef112f
commit
ff4eee5239
1 changed files with 3 additions and 2 deletions
|
@ -287,8 +287,9 @@ export function isPermalinkHost(host: string): boolean {
|
|||
}
|
||||
|
||||
function getPermalinkConstructor(): PermalinkConstructor {
|
||||
if (SdkConfig.get()['permalinkPrefix'] && SdkConfig.get()['permalinkPrefix'] !== matrixtoBaseUrl) {
|
||||
return new RiotPermalinkConstructor(SdkConfig.get()['permalinkPrefix']);
|
||||
const riotPrefix = SdkConfig.get()['permalinkPrefix'];
|
||||
if (riotPrefix && riotPrefix !== matrixtoBaseUrl) {
|
||||
return new RiotPermalinkConstructor(riotPrefix);
|
||||
}
|
||||
|
||||
return new SpecPermalinkConstructor();
|
||||
|
|
Loading…
Reference in a new issue