diff options
Diffstat (limited to 'src/plugins/crashHandler.ts')
-rw-r--r-- | src/plugins/crashHandler.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/crashHandler.ts b/src/plugins/crashHandler.ts index 79db782..e35dfed 100644 --- a/src/plugins/crashHandler.ts +++ b/src/plugins/crashHandler.ts @@ -64,8 +64,8 @@ export default definePlugin({ { find: 'dispatch({type:"MODAL_POP_ALL"})', replacement: { - match: /(?<=(?<popAll>\i)=function\(\){\(0,\i\.\i\)\(\);\i\.\i\.dispatch\({type:"MODAL_POP_ALL"}\).+};)/, - replace: "$self.popAllModals=$<popAll>;" + match: /"MODAL_POP_ALL".+?};(?<=(\i)=function.+?)/, + replace: (m, popAll) => `${m}$self.popAllModals=${popAll};` } } ], |