mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
fix 9c55285bf41e2d2489559f6a3f688cad947801e4
This commit is contained in:
+16
-4
@@ -531,10 +531,22 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
|||||||
if (command.startsWith('crash/')) {
|
if (command.startsWith('crash/')) {
|
||||||
const crashMessage = command.replace('crash/', '');
|
const crashMessage = command.replace('crash/', '');
|
||||||
console.error('VRCX recovered from crash:', crashMessage);
|
console.error('VRCX recovered from crash:', crashMessage);
|
||||||
const Sentry = await import('@sentry/vue');
|
|
||||||
Sentry.captureMessage(`crash message: ${crashMessage}`, {
|
if (advancedSettingsStore.sentryErrorReporting) {
|
||||||
level: 'fatal'
|
try {
|
||||||
});
|
import('@sentry/vue').then((Sentry) => {
|
||||||
|
Sentry.captureMessage(
|
||||||
|
`crash message: ${crashMessage}`,
|
||||||
|
{
|
||||||
|
level: 'fatal'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error setting up Sentry feedback:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: t('message.crash.vrcx_reload'),
|
message: t('message.crash.vrcx_reload'),
|
||||||
type: 'success'
|
type: 'success'
|
||||||
|
|||||||
Reference in New Issue
Block a user