diff options
| author | AAGaming <aagaming@riseup.net> | 2024-06-27 00:08:32 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-06-27 00:08:32 -0400 |
| commit | c2f8cba4af8042b7f8c443ff7f80a1540d7fa967 (patch) | |
| tree | 62e595108809838ec5f0a5ad71dbf20fe13c23e5 /frontend/src/components | |
| parent | c36f1985bda3754a52f87757a8fba1c8256ed9b8 (diff) | |
| download | decky-loader-c2f8cba4af8042b7f8c443ff7f80a1540d7fa967.tar.gz decky-loader-c2f8cba4af8042b7f8c443ff7f80a1540d7fa967.zip | |
trigger temporarilyDisableReporting in errorboundary
Diffstat (limited to 'frontend/src/components')
| -rw-r--r-- | frontend/src/components/DeckyErrorBoundary.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/DeckyErrorBoundary.tsx b/frontend/src/components/DeckyErrorBoundary.tsx index 6fe234b7..152e0f09 100644 --- a/frontend/src/components/DeckyErrorBoundary.tsx +++ b/frontend/src/components/DeckyErrorBoundary.tsx @@ -32,8 +32,9 @@ const DeckyErrorBoundary: FunctionComponent<DeckyErrorBoundaryProps> = ({ error, const [debugAllowed, setDebugAllowed] = useState<boolean>(true); // Intentionally doesn't use DeckyState. const [versionInfo, setVersionInfo] = useState<VerInfo>(); - const [errorSource, wasCausedByPlugin] = getLikelyErrorSourceFromValveReactError(error); + const [errorSource, wasCausedByPlugin, shouldReportToValve] = getLikelyErrorSourceFromValveReactError(error); useEffect(() => { + if (!shouldReportToValve) DeckyPluginLoader.errorBoundaryHook.temporarilyDisableReporting(); DeckyPluginLoader.updateVersion().then(setVersionInfo); }, []); return ( @@ -64,7 +65,7 @@ const DeckyErrorBoundary: FunctionComponent<DeckyErrorBoundaryProps> = ({ error, userSelect: 'auto', }} > - ⚠️ An error occured rendering this content. + ⚠️ An error occured while rendering this content. </h1> <pre style={{}}> <code> |
