mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 01:33:51 +02:00
* ui: Change the request user icon resolution (#1178) * ui: add Badge Earned text
This commit is contained in:
10
src/app.js
10
src/app.js
@@ -16924,7 +16924,15 @@ console.log(`isLinux: ${LINUX}`);
|
||||
return false;
|
||||
};
|
||||
|
||||
$app.methods.userImage = function (user) {
|
||||
$app.methods.userImage = function (user, isIcon, resolution = '64') {
|
||||
if (isIcon) {
|
||||
return user.userIcon
|
||||
? `${user.userIcon.replace('/file/', '/image/')}${user.userIcon.endsWith('/') ? '256' : '/' + resolution}`
|
||||
: user.currentAvatarThumbnailImageUrl?.replace(
|
||||
'256',
|
||||
resolution
|
||||
) || user.profilePicOverrideThumbnail;
|
||||
}
|
||||
if (typeof user === 'undefined') {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user