From 20b27f51db9bc3a3cd493ae7d332704bb5a716c5 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Thu, 26 Sep 2024 22:44:17 -0500 Subject: [PATCH] fix bug with login logic --- src/webpage/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpage/login.ts b/src/webpage/login.ts index 63f7a17..c0d3752 100644 --- a/src/webpage/login.ts +++ b/src/webpage/login.ts @@ -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,