mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
fix d5e6dfef72fdaee23fa295fc91c4bc789102eb33
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user