mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
Added check for VRC client setting trailing slash on icon url
This commit is contained in:
@@ -7551,6 +7551,16 @@ 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;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
// requres decoding base64 body on C# side
|
||||
$app.methods.onFileChangeVRCPlusIcon = function (e) {
|
||||
var files = e.target.files || e.dataTransfer.files;
|
||||
|
||||
Reference in New Issue
Block a user