mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 06:13:52 +02:00
Fix bug from no icon set
This commit is contained in:
@@ -7547,11 +7547,14 @@ import gameLogService from './service/gamelog.js'
|
||||
};
|
||||
|
||||
$app.methods.compareCurrentVRCPlusIcon = function (userIcon) {
|
||||
var url = new URL(API.currentUser.userIcon);
|
||||
var pathArray = url.pathname.split('/');
|
||||
var currentUserIcon = pathArray[4];
|
||||
if (userIcon === currentUserIcon) {
|
||||
return true;
|
||||
try {
|
||||
var url = new URL(API.currentUser.userIcon);
|
||||
var pathArray = url.pathname.split('/');
|
||||
var currentUserIcon = pathArray[4];
|
||||
if (userIcon === currentUserIcon) {
|
||||
return true;
|
||||
}
|
||||
} catch (err) {
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user