From 5e141f27c41172ee4a36d50ccc17855fbdede8cc Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 16 Sep 2024 16:37:45 +0200 Subject: [PATCH] /System/Info/Public instead of /web --- app/login.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/login.tsx b/app/login.tsx index 780d8a13..38621e97 100644 --- a/app/login.tsx +++ b/app/login.tsx @@ -86,13 +86,13 @@ const Login: React.FC = () => { url = url.slice(0, -1); } - if( await fetch("https://" + url + "/web/#/home.html", {mode: 'cors'}).then((response) => { + if( await fetch("https://" + url + "/System/Info/Public", {mode: 'cors'}).then((response) => { return response.status; }).catch((error) => { console.log(error) }) === 200) { return "https://"+url - } else if (await fetch("http://" + url + "/web/#/home.html", {mode: 'cors'}).then((response) => { + } else if (await fetch("http://" + url + "/System/Info/Public", {mode: 'cors'}).then((response) => { return response.status; }).catch((error) => { console.log(error)