Fix coding style

This commit is contained in:
dklimpel 2020-03-29 21:06:34 +02:00
parent 2e197e508f
commit a27163db22
2 changed files with 8 additions and 6 deletions

View File

@ -157,7 +157,7 @@ const LoginPage = ({ theme }) => {
disabled={loading} disabled={loading}
/> />
</div> </div>
<div className={classes.input}> <div className={classes.input}>
<BooleanInput <BooleanInput
autoFocus autoFocus
name="force_server" name="force_server"

View File

@ -42,11 +42,13 @@ const authProvider = {
ensureHttpsForUrl(trimmed_url) + "/_matrix/client/r0/login"; ensureHttpsForUrl(trimmed_url) + "/_matrix/client/r0/login";
return fetchUtils.fetchJson(login_api_url, options).then(({ json }) => { return fetchUtils.fetchJson(login_api_url, options).then(({ json }) => {
const normalized_base_url = stripTrailingSlash(getBaseUrl( const normalized_base_url = stripTrailingSlash(
trimmed_url, getBaseUrl(
json.well_known["m.homeserver"].base_url, trimmed_url,
force_server json.well_known["m.homeserver"].base_url,
)); force_server
)
);
localStorage.setItem("base_url", normalized_base_url); localStorage.setItem("base_url", normalized_base_url);
localStorage.setItem("home_server_url", json.home_server); localStorage.setItem("home_server_url", json.home_server);