fix alignment on hsInput in safari

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura
2021-11-06 18:25:56 +05:30
parent 364def188a
commit 916d564f82
2 changed files with 4 additions and 3 deletions

View File

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