more bug fixing

This commit is contained in:
MathMan05 2024-12-26 12:49:41 -06:00
parent c544741ef0
commit 0e67374206
2 changed files with 4 additions and 2 deletions

View file

@ -98,7 +98,7 @@ async function getApiUrl(instance: Instance): Promise<string | null> {
return instance.urls.api;
}
if (instance.url) {
const urls = await getApiUrls(instance.url);
const urls = await getApiUrls(instance.url, [], false);
return urls ? urls.api : null;
}
return null;

View file

@ -39,7 +39,9 @@ export async function getApiUrls(
valid = true;
break;
}
} catch (e) {}
} catch (e) {
//console.log(e);
}
}
if (!valid) {
throw new Error("Invalid instance");