Fix bug from no icon set

This commit is contained in:
Natsumi
2020-12-20 21:26:07 +13:00
committed by pypy
parent 5b665ee5c4
commit 9698638dfc

View File

@@ -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;
};