WebAPI.getProfileURL: Use profileKeyVersion by itself if we have it
This commit is contained in:
parent
6a68b37c83
commit
0fee1f9935
1 changed files with 7 additions and 2 deletions
|
@ -914,11 +914,16 @@ export function initialize({
|
|||
profileKeyVersion?: string,
|
||||
profileKeyCredentialRequest?: string
|
||||
) {
|
||||
let profileUrl = `/${identifier}`;
|
||||
|
||||
if (profileKeyVersion) {
|
||||
profileUrl += `/${profileKeyVersion}`;
|
||||
}
|
||||
if (profileKeyVersion && profileKeyCredentialRequest) {
|
||||
return `/${identifier}/${profileKeyVersion}/${profileKeyCredentialRequest}`;
|
||||
profileUrl += `/${profileKeyCredentialRequest}`;
|
||||
}
|
||||
|
||||
return `/${identifier}`;
|
||||
return profileUrl;
|
||||
}
|
||||
|
||||
async function getProfile(
|
||||
|
|
Loading…
Reference in a new issue