fix alignment on hsInput in safari
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
364def188a
commit
916d564f82
2 changed files with 4 additions and 3 deletions
|
|
@ -87,7 +87,8 @@ function Homeserver({ onChange }) {
|
|||
}, [hs]);
|
||||
|
||||
useEffect(async () => {
|
||||
const configFileUrl = `${window.location.href}/config.json`;
|
||||
const link = window.location.href;
|
||||
const configFileUrl = `${link}${link[link.length - 1] === '/' ? '' : '/'}config.json`;
|
||||
try {
|
||||
const result = await (await fetch(configFileUrl, { method: 'GET' })).json();
|
||||
const selectedHs = result?.defaultHomeserver;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue