mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
adjust sentry config and fix dialog behavior
This commit is contained in:
@@ -37,6 +37,7 @@ export async function initSentry(app) {
|
|||||||
release: version,
|
release: version,
|
||||||
replaysSessionSampleRate: 0.1,
|
replaysSessionSampleRate: 0.1,
|
||||||
replaysOnErrorSampleRate: 1.0,
|
replaysOnErrorSampleRate: 1.0,
|
||||||
|
tracesSampleRate: 0.1,
|
||||||
beforeSend(event, hint) {
|
beforeSend(event, hint) {
|
||||||
if (
|
if (
|
||||||
event.request?.status &&
|
event.request?.status &&
|
||||||
@@ -49,7 +50,13 @@ export async function initSentry(app) {
|
|||||||
integrations: [
|
integrations: [
|
||||||
Sentry.replayIntegration({
|
Sentry.replayIntegration({
|
||||||
maskAllText: true,
|
maskAllText: true,
|
||||||
blockAllMedia: true
|
blockAllMedia: false
|
||||||
|
}),
|
||||||
|
Sentry.browserTracingIntegration(),
|
||||||
|
Sentry.vueIntegration({
|
||||||
|
tracingOptions: {
|
||||||
|
trackComponents: true
|
||||||
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -447,9 +447,12 @@ export const useAdvancedSettingsStore = defineStore('AdvancedSettings', () => {
|
|||||||
'• Can be disabled at anytime in Advanced Settings.',
|
'• Can be disabled at anytime in Advanced Settings.',
|
||||||
'Anonymous Error Reporting',
|
'Anonymous Error Reporting',
|
||||||
{
|
{
|
||||||
type: 'info',
|
type: 'warning',
|
||||||
center: true,
|
center: true,
|
||||||
dangerouslyUseHTMLString: true
|
dangerouslyUseHTMLString: true,
|
||||||
|
closeOnClickModal: false,
|
||||||
|
closeOnPressEscape: false,
|
||||||
|
distinguishCancelAndClose: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@@ -462,16 +465,22 @@ export const useAdvancedSettingsStore = defineStore('AdvancedSettings', () => {
|
|||||||
{
|
{
|
||||||
confirmButtonText: 'Restart Now',
|
confirmButtonText: 'Restart Now',
|
||||||
cancelButtonText: 'Later',
|
cancelButtonText: 'Later',
|
||||||
type: 'info',
|
type: 'warning',
|
||||||
center: true
|
center: true,
|
||||||
|
closeOnClickModal: false,
|
||||||
|
closeOnPressEscape: false
|
||||||
}
|
}
|
||||||
).then(() => {
|
).then(() => {
|
||||||
VRCXUpdaterStore.restartVRCX(false);
|
VRCXUpdaterStore.restartVRCX(false);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch((action) => {
|
||||||
state.sentryErrorReporting = false;
|
const act =
|
||||||
configRepository.setString('VRCX_SentryEnabled', 'false');
|
typeof action === 'string' ? action : action?.action;
|
||||||
|
if (act === 'cancel') {
|
||||||
|
state.sentryErrorReporting = false;
|
||||||
|
configRepository.setString('VRCX_SentryEnabled', 'false');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user