diff options
| author | AAGaming <aagaming@riseup.net> | 2024-06-27 00:09:00 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-06-27 00:09:00 -0400 |
| commit | d067fe6361b6bebd2d1ae4adff2cf3e49cbd99fe (patch) | |
| tree | ac65d9df2a083644c54896767a0bf5670bd8bd84 /frontend/src/components | |
| parent | c02a78ed6e1d9c21e84b60d9a5b077d0ee547a8f (diff) | |
| download | decky-loader-d067fe6361b6bebd2d1ae4adff2cf3e49cbd99fe.tar.gz decky-loader-d067fe6361b6bebd2d1ae4adff2cf3e49cbd99fe.zip | |
add some errorboundaries
Diffstat (limited to 'frontend/src/components')
| -rw-r--r-- | frontend/src/components/PluginView.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index 997e576b..07367bc3 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -1,4 +1,4 @@ -import { ButtonItem, Focusable, PanelSection, PanelSectionRow } from '@decky/ui'; +import { ButtonItem, ErrorBoundary, Focusable, PanelSection, PanelSectionRow } from '@decky/ui'; import { FC, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { FaEyeSlash } from 'react-icons/fa'; @@ -29,7 +29,9 @@ const PluginView: FC = () => { <Focusable onCancelButton={closeActivePlugin}> <TitleView /> <div style={{ height: '100%', paddingTop: '16px' }}> - {(visible || activePlugin.alwaysRender) && activePlugin.content} + <ErrorBoundary> + {(visible || activePlugin.alwaysRender) && activePlugin.content} + </ErrorBoundary> </div> </Focusable> ); |
