update return type of url function
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user