remove need for http/https

This commit is contained in:
simon
2024-09-15 18:45:26 +02:00
parent 25656cb7f1
commit 19a53da8a7

View File

@@ -92,7 +92,7 @@ const Login: React.FC = () => {
console.log(error)
}) === 200) {
return "https://"+url
} else if (await fetch("http://" + url + "/web/#/home.html", {redirect: "manual"}).then((response) => {
} else if (await fetch("http://" + url + "/web/#/home.html", {mode: 'cors'}).then((response) => {
return response.status;
}).catch((error) => {
console.log(error)