From 24823febf8aa94f7229b6d602f3dab9f7fb721c8 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 5 Jun 2026 21:54:13 -0400 Subject: fixes for june 2026 beta errorboundary --- frontend/src/errorboundary-hook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/errorboundary-hook.tsx') 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()), ); -- cgit v1.2.3