mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Add currentAvatarAssetUrl, typos
This commit is contained in:
@@ -9461,6 +9461,9 @@ speechSynthesis.getVoices();
|
||||
API.getAvatar({avatarId}).then((args) => {
|
||||
var { ref } = args;
|
||||
D.ref = ref;
|
||||
if ((ref.imageUrl === API.currentUser.currentAvatarImageUrl) && (!ref.assetUrl)) {
|
||||
D.ref.assetUrl = API.currentUser.currentAvatarAssetUrl;
|
||||
}
|
||||
D.visible = true;
|
||||
if (/quest/.test(ref.tags)) {
|
||||
D.isQuestFallback = true;
|
||||
@@ -9480,7 +9483,7 @@ speechSynthesis.getVoices();
|
||||
var fileId = extractFileId(ref.assetUrl);
|
||||
var fileVersion = extractFileVersion(ref.assetUrl);
|
||||
}
|
||||
var imageId = extractFileId(ref.thumbnailImageUrl);
|
||||
var imageId = extractFileId(ref.imageUrl);
|
||||
D.fileSize = '';
|
||||
if (fileId) {
|
||||
D.fileSize = 'Loading';
|
||||
@@ -9620,7 +9623,7 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
return;
|
||||
}
|
||||
if ((refUserId === API.currentUser.id) && (API.cachedAvatars.has(API.currentUser.currentAvatar))) {
|
||||
if (refUserId === API.currentUser.id) {
|
||||
this.showAvatarDialog(API.currentUser.currentAvatar);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user