mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
change hostname and remove http block
This commit is contained in:
parent
cfa6091aa0
commit
d4a2db8e16
@ -558,16 +558,14 @@ export function GitIntegrationModal(props: ({
|
||||
const updateHostValue = (host: string) => {
|
||||
if (mode === "new") {
|
||||
|
||||
let verifiedHost = host;
|
||||
let newHostValue = host;
|
||||
|
||||
if (host.startsWith("https://")) {
|
||||
verifiedHost = host.replace("https://","");
|
||||
} else if (host.startsWith("http://")) {
|
||||
verifiedHost = host.replace("http://","");
|
||||
newHostValue = host.replace("https://","");
|
||||
}
|
||||
|
||||
setHost(verifiedHost);
|
||||
setRedirectURL(callbackUrl(verifiedHost));
|
||||
setHost(newHostValue);
|
||||
setRedirectURL(callbackUrl(newHostValue));
|
||||
setErrorMessage(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user