mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
patch crash report
This commit is contained in:
+3
-1
@@ -121,8 +121,10 @@ async function registerSentryPiniaPlugin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function initPiniaPlugins() {
|
export async function initPiniaPlugins() {
|
||||||
registerPiniaActionTrailPlugin();
|
|
||||||
await registerSentryPiniaPlugin();
|
await registerSentryPiniaPlugin();
|
||||||
|
setTimeout(() => {
|
||||||
|
registerPiniaActionTrailPlugin();
|
||||||
|
}, 60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createGlobalStores() {
|
export function createGlobalStores() {
|
||||||
|
|||||||
+1
-1
@@ -544,7 +544,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
|||||||
scope.setTag('reason', 'crash-recovery');
|
scope.setTag('reason', 'crash-recovery');
|
||||||
scope.setContext('pinia_actions', {
|
scope.setContext('pinia_actions', {
|
||||||
trailText,
|
trailText,
|
||||||
count: trail.length
|
sessionTime: performance.now() / 1000 / 60
|
||||||
});
|
});
|
||||||
Sentry.captureMessage(
|
Sentry.captureMessage(
|
||||||
`crash message: ${crashMessage}`
|
`crash message: ${crashMessage}`
|
||||||
|
|||||||
Reference in New Issue
Block a user