mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 06:16:05 +02:00
Fix parseAvatarUrl
This commit is contained in:
+2
-1
@@ -14015,7 +14015,8 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
this.inviteRequestResponseMessageTable,
|
this.inviteRequestResponseMessageTable,
|
||||||
pastDisplayNameTable: this.pastDisplayNameTable,
|
pastDisplayNameTable: this.pastDisplayNameTable,
|
||||||
friends: this.friends,
|
friends: this.friends,
|
||||||
directAccessWorld: this.directAccessWorld
|
directAccessWorld: this.directAccessWorld,
|
||||||
|
parseUserUrl: this.parseUserUrl
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -567,6 +567,10 @@
|
|||||||
directAccessWorld: {
|
directAccessWorld: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => {}
|
default: () => {}
|
||||||
|
},
|
||||||
|
parseUserUrl: {
|
||||||
|
type: Function,
|
||||||
|
default: () => {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const emit = defineEmits(['logout', 'lookupUser', 'showEditInviteMessageDialog']);
|
const emit = defineEmits(['logout', 'lookupUser', 'showEditInviteMessageDialog']);
|
||||||
@@ -681,7 +685,7 @@
|
|||||||
if (action === 'confirm' && instance.inputValue) {
|
if (action === 'confirm' && instance.inputValue) {
|
||||||
const testUrl = instance.inputValue.substring(0, 15);
|
const testUrl = instance.inputValue.substring(0, 15);
|
||||||
if (testUrl === 'https://vrchat.') {
|
if (testUrl === 'https://vrchat.') {
|
||||||
const avatarId = parseAvatarUrl(instance.inputValue);
|
const avatarId = props.parseAvatarUrl(instance.inputValue);
|
||||||
if (avatarId) {
|
if (avatarId) {
|
||||||
showAvatarDialog(avatarId);
|
showAvatarDialog(avatarId);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user