mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-04 11:32:50 +01:00
remove need for http/https
This commit is contained in:
@@ -92,7 +92,7 @@ const Login: React.FC = () => {
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
}) === 200) {
|
}) === 200) {
|
||||||
return "https://"+url
|
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;
|
return response.status;
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user