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
J. Ryan Stinnett 2019-02-20 10:24:01 +00:00
parent d8c5163f49
commit 9292a46db0
1 changed files with 2 additions and 2 deletions

View File

@ -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;