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