Fix coding style
This commit is contained in:
parent
2e197e508f
commit
a27163db22
@ -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"
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user