diff options
Diffstat (limited to 'frontend/src/errorboundary-hook.tsx')
| -rw-r--r-- | frontend/src/errorboundary-hook.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/errorboundary-hook.tsx b/frontend/src/errorboundary-hook.tsx index 072c96ca..95be77ab 100644 --- a/frontend/src/errorboundary-hook.tsx +++ b/frontend/src/errorboundary-hook.tsx @@ -69,13 +69,13 @@ class ErrorBoundaryHook extends Logger { }); if (!ErrorBoundary) { - this.error('could not find ValveErrorBoundary'); + this.error('@decky/ui could not find ErrorBoundary, skipping patch'); return; } this.errorBoundaryPatch = replacePatch(ErrorBoundary.prototype, 'render', function (this: any) { if (this.state._deckyForceRerender) { - const stateClone = {...this.state, _deckyForceRerender: null}; + const stateClone = { ...this.state, _deckyForceRerender: null }; this.setState(stateClone); return null; } @@ -93,9 +93,9 @@ class ErrorBoundaryHook extends Logger { return callOriginal; }); // Small hack that gives us a lot more flexibility to force rerenders. - ValveErrorBoundary.prototype._deckyForceRerender = function (this: any) { - this.setState({...this.state, _deckyForceRerender: true}); - } + ErrorBoundary.prototype._deckyForceRerender = function (this: any) { + this.setState({ ...this.state, _deckyForceRerender: true }); + }; } public temporarilyDisableReporting() { |
