From a12b8adeaf2d541c3f38955e8c58bc3e391fb29a Mon Sep 17 00:00:00 2001 From: beebls Date: Sun, 30 Oct 2022 15:32:39 -0600 Subject: [PATCH] Slight tweak to reduce error messages No longer runs 2 try catch statements, and only tries the new method once the old one has been confirmed to not exist. --- src/theme-manager/ExpandedView.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/theme-manager/ExpandedView.tsx b/src/theme-manager/ExpandedView.tsx index 18f2a5b..0ff75ad 100644 --- a/src/theme-manager/ExpandedView.tsx +++ b/src/theme-manager/ExpandedView.tsx @@ -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 - ); } }} >