This commit is contained in:
Anton Bracke 2025-08-19 15:50:16 +02:00
parent e2959ecc7b
commit 28199d3d70

View File

@ -108,7 +108,7 @@ function getHostFromUrl(forge: Forge) {
return forge.type.charAt(0).toUpperCase() + forge.type.slice(1);
}
const url = new URL(forge.oauth_host || forge.url);
const url = new URL(forge.oauth_host ?? forge.url);
return url.hostname;
}