mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Always check if the permalink is a spec permalink
See code for rationale
This commit is contained in:
parent
3e5a39d646
commit
199dfa7bf9
@ -280,6 +280,9 @@ export function makeGroupPermalink(groupId) {
|
||||
}
|
||||
|
||||
export function isPermalinkHost(host: string): boolean {
|
||||
// Always check if the permalink is a spec permalink (callers are likely to call
|
||||
// parsePermalink after this function).
|
||||
if (new SpecPermalinkConstructor().isPermalinkHost(host)) return true;
|
||||
return getPermalinkConstructor().isPermalinkHost(host);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user