From 24082fe63cdcdf41993f9e1430d1405152a2c930 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 21 Nov 2026 22:23:03 -0500 Subject: feat: Support new Steam Betas (only) and Frame (#1019) --- frontend/ErrorBoundary.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 frontend/ErrorBoundary.ts (limited to 'frontend/ErrorBoundary.ts') diff --git a/frontend/ErrorBoundary.ts b/frontend/ErrorBoundary.ts new file mode 100644 index 00000000..a19ad788 --- /dev/null +++ b/frontend/ErrorBoundary.ts @@ -0,0 +1,6 @@ +import { FC, PropsWithChildren } from "react"; +import { findModuleExport } from "../module-system"; + +export const ErrorBoundary = findModuleExport( + (e) => e?.prototype?.Reset && e?.prototype?.componentDidCatch && e.prototype?.render?.toString().includes("lastErrorKey"), +) as FC; // Actually a class but @types/react is broken lol \ No newline at end of file -- cgit v1.2.3