mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-22 01:04:00 +00:00
undo
This commit is contained in:
parent
e2959ecc7b
commit
28199d3d70
@ -108,7 +108,7 @@ function getHostFromUrl(forge: Forge) {
|
|||||||
return forge.type.charAt(0).toUpperCase() + forge.type.slice(1);
|
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;
|
return url.hostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user