mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
remove sensitive state before sending to Sentry
This commit is contained in:
+28
-1
@@ -36,7 +36,34 @@ import { useWorldStore } from './world';
|
|||||||
import { useWristOverlaySettingsStore } from './settings/wristOverlay';
|
import { useWristOverlaySettingsStore } from './settings/wristOverlay';
|
||||||
|
|
||||||
export const pinia = createPinia();
|
export const pinia = createPinia();
|
||||||
pinia.use(createSentryPiniaPlugin());
|
|
||||||
|
pinia.use(
|
||||||
|
createSentryPiniaPlugin({
|
||||||
|
stateTransformer: (state) => ({
|
||||||
|
...state,
|
||||||
|
Auth: null,
|
||||||
|
Feed: null,
|
||||||
|
Favorite: null,
|
||||||
|
Friend: null,
|
||||||
|
User: {
|
||||||
|
// @ts-ignore
|
||||||
|
...state.User,
|
||||||
|
currentUser: null,
|
||||||
|
subsetOfLanguages: null
|
||||||
|
},
|
||||||
|
GameLog: {
|
||||||
|
// @ts-ignore
|
||||||
|
...state.GameLog,
|
||||||
|
gameLogTable: null
|
||||||
|
},
|
||||||
|
Notification: {
|
||||||
|
// @ts-ignore
|
||||||
|
...state.Notification,
|
||||||
|
notificationTable: null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
export function createGlobalStores() {
|
export function createGlobalStores() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user