fix d5e6dfef72fdaee23fa295fc91c4bc789102eb33

This commit is contained in:
pa
2026-01-07 22:21:50 +09:00
committed by Natsumi
parent 882851b98f
commit 69cdc584eb
2 changed files with 18 additions and 14 deletions

View File

@@ -58,18 +58,6 @@ export function appendPiniaActionTrail(entry, maxEntries = 200) {
}
export function createPiniaActionTrailPlugin({ maxEntries = 200 } = {}) {
if (typeof window !== 'undefined') {
// @ts-ignore
if (!window.__VRCX_PINIA_ACTION_TRAIL__) {
// @ts-ignore
window.__VRCX_PINIA_ACTION_TRAIL__ = true;
window.addEventListener('beforeunload', () => {
clearPiniaActionTrail();
});
}
}
return ({ store }) => {
store.$onAction(({ name }) => {
appendPiniaActionTrail(