diff options
Diffstat (limited to 'frontend/src')
| -rw-r--r-- | frontend/src/errorboundary-hook.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/errorboundary-hook.tsx b/frontend/src/errorboundary-hook.tsx index 2c69a267..70aa2188 100644 --- a/frontend/src/errorboundary-hook.tsx +++ b/frontend/src/errorboundary-hook.tsx @@ -24,7 +24,7 @@ class ErrorBoundaryHook extends Logger { window.__ERRORBOUNDARY_HOOK_INSTANCE = this; // valve writes only the sanest of code - const exp = /^\(\)=>\(.\|\|.\(new .\),.\)$/; + const exp = /^\(\)=>\(.\|\|(?:.\(|\(.=)new .\),.\)$/; const initErrorReportingStore = findModuleExport( (e) => typeof e == 'function' && e?.toString && exp.test(e.toString()), ); |
