Skip to content

Commit

Permalink
Slight tweak to reduce error messages
Browse files Browse the repository at this point in the history
No longer runs 2 try catch statements, and only tries the new method once the old one has been confirmed to not exist.
  • Loading branch information
beebls committed Oct 30, 2022
1 parent 06fff30 commit a12b8ad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/theme-manager/ExpandedView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,9 @@ export const ExpandedViewPage: VFC = () => {
"CSSLoader Error, Legacy router method not found",
e
);
}
// This method only works on newer (Beta/Preview as of writing) SteamOS, and doesn't exist in Stable
try {
// This method only works on newer (Beta/Preview as of writing) SteamOS, and doesn't exist in Stable
// @ts-ignore
Router.WindowStore.m_MainWindowInstance.NavigateBack();
} catch (e) {
console.log(
"CSSLoader Error, New router method not found",
e
);
}
}}
>
Expand Down

0 comments on commit a12b8ad

Please sign in to comment.