diff --git a/src/app.js b/src/app.js index 9626f530..0c625ec6 100644 --- a/src/app.js +++ b/src/app.js @@ -14015,7 +14015,8 @@ console.log(`isLinux: ${LINUX}`); this.inviteRequestResponseMessageTable, pastDisplayNameTable: this.pastDisplayNameTable, friends: this.friends, - directAccessWorld: this.directAccessWorld + directAccessWorld: this.directAccessWorld, + parseUserUrl: this.parseUserUrl }; }; diff --git a/src/views/Profile/Profile.vue b/src/views/Profile/Profile.vue index cad77cd4..b76c0f05 100644 --- a/src/views/Profile/Profile.vue +++ b/src/views/Profile/Profile.vue @@ -567,6 +567,10 @@ directAccessWorld: { type: Function, default: () => {} + }, + parseUserUrl: { + type: Function, + default: () => {} } }); const emit = defineEmits(['logout', 'lookupUser', 'showEditInviteMessageDialog']); @@ -681,7 +685,7 @@ if (action === 'confirm' && instance.inputValue) { const testUrl = instance.inputValue.substring(0, 15); if (testUrl === 'https://vrchat.') { - const avatarId = parseAvatarUrl(instance.inputValue); + const avatarId = props.parseAvatarUrl(instance.inputValue); if (avatarId) { showAvatarDialog(avatarId); } else {