diff options
| author | AAGaming <aagaming@riseup.net> | 2026-11-21 22:23:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-21 22:23:03 -0500 |
| commit | 24082fe63cdcdf41993f9e1430d1405152a2c930 (patch) | |
| tree | 59454b25fc5cffcbce82e7947d8e3803952fc5ba /frontend/ErrorBoundary.ts | |
| parent | ffd103b9c1a4ce5bf305e7c0998eda6e05457dad (diff) | |
| download | decky-loader-24082fe63cdcdf41993f9e1430d1405152a2c930.tar.gz decky-loader-24082fe63cdcdf41993f9e1430d1405152a2c930.zip | |
feat: Support new Steam Betas (only) and Frame (#1019)v4.0.0-pre1
Diffstat (limited to 'frontend/ErrorBoundary.ts')
| -rw-r--r-- | frontend/ErrorBoundary.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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<PropsWithChildren>; // Actually a class but @types/react is broken lol
\ No newline at end of file |
