fix bug with login logic

This commit is contained in:
MathMan05
2024-09-26 22:44:17 -05:00
parent 5d5f30d78e
commit 20b27f51db

View File

@@ -287,7 +287,7 @@ async function getapiurls(str: string): Promise<
}/policies/instance/domains`
).then(x=>x.json());
return{
api: info.apiEndpoint,
api: info.apiEndpoint+(url.pathname.includes("api") ? "" : "/api"),
gateway: info.gateway,
cdn: info.cdn,
wellknown: str,