Browser crash message, mutual friends message

This commit is contained in:
Natsumi
2025-12-30 15:36:45 +13:00
parent c49635561c
commit 5e9dcfbd3f
6 changed files with 63 additions and 30 deletions
+13 -2
View File
@@ -525,11 +525,22 @@ export const useVrcxStore = defineStore('Vrcx', () => {
async function startupLaunchCommand() {
const command = await AppApi.GetLaunchCommand();
if (command) {
eventLaunchCommand(command);
if (!command) {
return;
}
if (command.startsWith('crash/')) {
const crashMessage = command.replace('crash/', '');
console.error('VRCX recovered from crash:', crashMessage);
ElMessageBox.alert(
crashMessage,
t('message.crash.vrcx_crash')
).catch(() => {});
return;
}
eventLaunchCommand(command);
}
// called from C#
function eventLaunchCommand(input) {
if (!watchState.isLoggedIn) {
return;