summaryrefslogtreecommitdiff
path: root/frontend/src/errorboundary-hook.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-11-21 21:14:41 -0500
committerAAGaming <aagaming@riseup.net>2026-11-21 21:14:41 -0500
commit02db20f846857374b9b5f1e7dbd475befdf47b71 (patch)
tree55c7553d32ffb55e3f490d153543fb96ed9bb71a /frontend/src/errorboundary-hook.tsx
parentffd103b9c1a4ce5bf305e7c0998eda6e05457dad (diff)
downloaddecky-loader-02db20f846857374b9b5f1e7dbd475befdf47b71.tar.gz
decky-loader-02db20f846857374b9b5f1e7dbd475befdf47b71.zip
esmodule support base
Diffstat (limited to 'frontend/src/errorboundary-hook.tsx')
-rw-r--r--frontend/src/errorboundary-hook.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/errorboundary-hook.tsx b/frontend/src/errorboundary-hook.tsx
index 9dbe9dcd..2bbecc58 100644
--- a/frontend/src/errorboundary-hook.tsx
+++ b/frontend/src/errorboundary-hook.tsx
@@ -26,7 +26,7 @@ class ErrorBoundaryHook extends Logger {
// valve writes only the sanest of code
const exp = /^\(\)=>\([\w$]+\|\|(?:[\w$]+\(|\([\w$]+=)new [\w$]+\),[\w$]+\)$/;
const initErrorReportingStore = findModuleExport(
- (e) => typeof e == 'function' && e?.toString && exp.test(e.toString()),
+ (e) => typeof e == 'function' && e?.toString && (exp.test(e.toString()) || e.toString() == "()=>(store||=new CErrorReportingStore,store)"),
);
if (!initErrorReportingStore) {