mirror of https://github.com/vector-im/riot-web
Update comment about Modular server type selection
Modular now sets `disable_custom_urls`, so the server type selector is not shown for Modular-hosted Riot.pull/21833/head
parent
d8c5163f49
commit
9292a46db0
|
@ -62,8 +62,8 @@ function getDefaultType(defaultHsUrl) {
|
||||||
} else if (defaultHsUrl === TYPES.FREE.hsUrl) {
|
} else if (defaultHsUrl === TYPES.FREE.hsUrl) {
|
||||||
return FREE;
|
return FREE;
|
||||||
} else if (new URL(defaultHsUrl).hostname.endsWith('.modular.im')) {
|
} else if (new URL(defaultHsUrl).hostname.endsWith('.modular.im')) {
|
||||||
// TODO: Use a Riot config parameter to detect Modular-ness.
|
// This is an unlikely case to reach, as Modular defaults to hiding the
|
||||||
// https://github.com/vector-im/riot-web/issues/8253
|
// server type selector.
|
||||||
return PREMIUM;
|
return PREMIUM;
|
||||||
} else {
|
} else {
|
||||||
return ADVANCED;
|
return ADVANCED;
|
||||||
|
|
Loading…
Reference in New Issue