update return type of url function
This commit is contained in:
parent
bca93e57b4
commit
240dd30529
2 changed files with 3 additions and 1 deletions
|
@ -177,6 +177,7 @@ async function getapiurls(str) {
|
||||||
gateway: info.gateway,
|
gateway: info.gateway,
|
||||||
cdn: info.cdn,
|
cdn: info.cdn,
|
||||||
wellknown: str,
|
wellknown: str,
|
||||||
|
login: url.toString()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
|
@ -154,7 +154,7 @@ function adduser(user){
|
||||||
const instancein=document.getElementById("instancein") as HTMLInputElement;
|
const instancein=document.getElementById("instancein") as HTMLInputElement;
|
||||||
let timeout;
|
let timeout;
|
||||||
let instanceinfo;
|
let instanceinfo;
|
||||||
async function getapiurls(str:string):Promise<{api:string,cdn:string,gateway:string,wellknown:string}|false>{
|
async function getapiurls(str:string):Promise<{api:string,cdn:string,gateway:string,wellknown:string,login:string}|false>{
|
||||||
if(str[str.length-1]!=="/"){
|
if(str[str.length-1]!=="/"){
|
||||||
str+="/"
|
str+="/"
|
||||||
}
|
}
|
||||||
|
@ -174,6 +174,7 @@ async function getapiurls(str:string):Promise<{api:string,cdn:string,gateway:str
|
||||||
gateway: info.gateway,
|
gateway: info.gateway,
|
||||||
cdn: info.cdn,
|
cdn: info.cdn,
|
||||||
wellknown: str,
|
wellknown: str,
|
||||||
|
login:url.toString()
|
||||||
};
|
};
|
||||||
}catch{
|
}catch{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue