mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-03 12:51:04 +02:00
Minor cleanup of getPermalinkConstructor
This commit is contained in:
parent
6656ef112f
commit
ff4eee5239
@ -287,8 +287,9 @@ export function isPermalinkHost(host: string): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getPermalinkConstructor(): PermalinkConstructor {
|
function getPermalinkConstructor(): PermalinkConstructor {
|
||||||
if (SdkConfig.get()['permalinkPrefix'] && SdkConfig.get()['permalinkPrefix'] !== matrixtoBaseUrl) {
|
const riotPrefix = SdkConfig.get()['permalinkPrefix'];
|
||||||
return new RiotPermalinkConstructor(SdkConfig.get()['permalinkPrefix']);
|
if (riotPrefix && riotPrefix !== matrixtoBaseUrl) {
|
||||||
|
return new RiotPermalinkConstructor(riotPrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new SpecPermalinkConstructor();
|
return new SpecPermalinkConstructor();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user